From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../global_objects/string/fixed/index.html | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/pt-br/web/javascript/reference/global_objects/string/fixed/index.html (limited to 'files/pt-br/web/javascript/reference/global_objects/string/fixed') diff --git a/files/pt-br/web/javascript/reference/global_objects/string/fixed/index.html b/files/pt-br/web/javascript/reference/global_objects/string/fixed/index.html new file mode 100644 index 0000000000..4a6004f05d --- /dev/null +++ b/files/pt-br/web/javascript/reference/global_objects/string/fixed/index.html @@ -0,0 +1,66 @@ +--- +title: String.prototype.fixed() +slug: Web/JavaScript/Reference/Global_Objects/String/fixed +tags: + - Descontinuado + - JavaScript + - Prototipo + - Referencia + - String + - fixed() + - metodo +translation_of: Web/JavaScript/Reference/Global_Objects/String/fixed +--- +
{{JSRef}} {{deprecated_header}}
+ +

O método fixed() cria um elemento HTML <tt> que faz com que uma string seja exibida em uma fonte de densidade fixa.

+ +

Sintaxe

+ +
str.fixed()
+ +

Valor retornado

+ +

Uma string que representa o elemento HTML <tt>.

+ +

Descrição

+ +

O método fixed() cria uma string dentro de uma tag <tt>:
+ "<tt>str</tt>".

+ +

Exemplos

+ +

Usando fixed()

+ +

O exemplo a seguir usa o método fixed() para alterar a formatação de uma string:

+ +
var worldString = 'Olá, mundo';
+console.log(worldString.fixed()); // "<tt>Olá, mundo</tt>"
+
+ +

Especificações

+ + + + + + + + + + +
Specification
{{SpecName('ESDraft', '#sec-string.prototype.fixed', 'String.prototype.fixed')}}
+ + + + + +

{{Compat("javascript.builtins.String.fixed")}}

+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf