From 844f5103992238c0c23203286dad16a466e89c97 Mon Sep 17 00:00:00 2001 From: julieng Date: Tue, 3 Aug 2021 08:03:09 +0200 Subject: move *.html to *.md --- .../global_objects/string/fixed/index.html | 73 ---------------------- 1 file changed, 73 deletions(-) delete mode 100644 files/fr/web/javascript/reference/global_objects/string/fixed/index.html (limited to 'files/fr/web/javascript/reference/global_objects/string/fixed/index.html') diff --git a/files/fr/web/javascript/reference/global_objects/string/fixed/index.html b/files/fr/web/javascript/reference/global_objects/string/fixed/index.html deleted file mode 100644 index c014787858..0000000000 --- a/files/fr/web/javascript/reference/global_objects/string/fixed/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: String.prototype.fixed() -slug: Web/JavaScript/Reference/Global_Objects/String/fixed -tags: - - Déprécié - - JavaScript - - Méthode - - Prototype - - Reference - - String -translation_of: Web/JavaScript/Reference/Global_Objects/String/fixed -original_slug: Web/JavaScript/Reference/Objets_globaux/String/fixed ---- -
{{JSRef}}{{deprecated_header}}
- -

La méthode fixed() permet de créer un élément HTML {{HTMLElement("tt")}}, ce qui permet d'afficher le texte de la chaîne de caractère dans une fonte à chasse fixe.

- -

Syntaxe

- -
str.fixed()
- -

Valeur de retour

- -

Une chaîne de caractères représentant un élément HTML {{HTMLElement("tt")}}.

- -

Description

- -

La méthode fixed() encadre une chaîne de caractères dans une balise <tt> :
- "<tt>str</tt>"

- -

Exemples

- -

L'exemple suivant illustre l'utilisation de la méthode fixed pour formater une chaîne de caractères :

- -
var worldString = "Coucou monde";
-
-console.log(worldString.fixed());
-// "<tt>Coucou monde</tt>"
-
- -

Spécifications

- - - - - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('ES6', '#sec-string.prototype.fixed', 'String.prototype.fixed')}}{{Spec2('ES6')}}Définition initiale. Implémentée dans JavaScript 1.0. Définie dans l'annexe B (normative) pour les fonctionnalités ECMAScript additionnelles pour les navigateurs web.
{{SpecName('ESDraft', '#sec-string.prototype.fixed', 'String.prototype.fixed')}}{{Spec2('ESDraft')}}Définie dans l'annexe B (normative) pour les fonctionnalités ECMAScript additionnelles pour les navigateurs web.
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

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