From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../global_objects/string/fixed/index.html | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 files/uk/web/javascript/reference/global_objects/string/fixed/index.html (limited to 'files/uk/web/javascript/reference/global_objects/string/fixed') diff --git a/files/uk/web/javascript/reference/global_objects/string/fixed/index.html b/files/uk/web/javascript/reference/global_objects/string/fixed/index.html new file mode 100644 index 0000000000..c13fbaa65f --- /dev/null +++ b/files/uk/web/javascript/reference/global_objects/string/fixed/index.html @@ -0,0 +1,62 @@ +--- +title: String.prototype.fixed() +slug: Web/JavaScript/Reference/Global_Objects/String/fixed +tags: + - JavaScript + - String + - метод + - не рекомендований +translation_of: Web/JavaScript/Reference/Global_Objects/String/fixed +--- +
{{JSRef}} {{deprecated_header}}
+ +

Метод fixed() створює HTML-елемент <tt>, який відображає рядок моноширинним шрифтом.

+ +

Синтаксис

+ +
str.fixed()
+ +

Значення, що повертається

+ +

Рядок, що відображає HTML-елемент <tt>.

+ +

Опис

+ +

Метод fixed() вбудовує рядок у тег <tt>: "<tt>str</tt>".

+ +

Приклади

+ +

Використання fixed()

+ +

Наступний приклад використовує метод fixed, щоб змінити форматування рядка:

+ +
var worldString = 'Привіт';
+console.log(worldString.fixed()); // "<tt>Привіт</tt>"
+
+ +

Специфікації

+ + + + + + + + + + +
Специфікація
{{SpecName('ESDraft', '#sec-string.prototype.fixed', 'String.prototype.fixed')}}
+ +

Сумісність з веб-переглядачами

+ + + +

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

+ +

Див. також

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