From bf8e099b9c8b3c60d60b3712b4fc97b052c39887 Mon Sep 17 00:00:00 2001 From: julieng Date: Tue, 3 Aug 2021 08:03:23 +0200 Subject: convert content to md --- .../global_objects/string/tolowercase/index.md | 76 ++++++++-------------- 1 file changed, 26 insertions(+), 50 deletions(-) (limited to 'files/fr/web/javascript/reference/global_objects/string/tolowercase') diff --git a/files/fr/web/javascript/reference/global_objects/string/tolowercase/index.md b/files/fr/web/javascript/reference/global_objects/string/tolowercase/index.md index 88a37a316c..abd97d98aa 100644 --- a/files/fr/web/javascript/reference/global_objects/string/tolowercase/index.md +++ b/files/fr/web/javascript/reference/global_objects/string/tolowercase/index.md @@ -10,69 +10,45 @@ tags: translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase original_slug: Web/JavaScript/Reference/Objets_globaux/String/toLowerCase --- -
{{JSRef}}
+{{JSRef}} -

La méthode toLowerCase() retourne la chaîne de caractères courante en minuscules.

+La méthode **`toLowerCase()`** retourne la chaîne de caractères courante en minuscules. -
{{EmbedInteractiveExample("pages/js/string-tolowercase.html")}}
+{{EmbedInteractiveExample("pages/js/string-tolowercase.html")}} -

Syntaxe

+## Syntaxe -
str.toLowerCase()
+ str.toLowerCase() -

Valeur de retour

+### Valeur de retour -

Une nouvelle chaîne de caractères qui est obtenue en passant la chaîne appelante en minuscules.

+Une nouvelle chaîne de caractères qui est obtenue en passant la chaîne appelante en minuscules. -

Description

+## Description -

La méthode toLowerCase() renvoie la valeur de la chaîne convertie en minuscules. toLowerCase() ne modifie pas la valeur de la chaîne courante.

+La méthode `toLowerCase()` renvoie la valeur de la chaîne convertie en minuscules. `toLowerCase()` ne modifie pas la valeur de la chaîne courante. -

Exemples

+## Exemples -
console.log( "ALPHABET".toLowerCase() ); // "alphabet"
-
+```js +console.log( "ALPHABET".toLowerCase() ); // "alphabet" +``` -

Spécifications

+## Spécifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('ES1')}}{{Spec2('ES1')}}Définition initiale. Implémentée avec JavaScript 1.0.
{{SpecName('ES5.1', '#sec-15.5.4.16', 'String.prototype.toLowerCase')}}{{Spec2('ES5.1')}} 
{{SpecName('ES6', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}}{{Spec2('ES6')}} 
{{SpecName('ESDraft', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}}{{Spec2('ESDraft')}} 
+| Spécification | État | Commentaires | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------- | +| {{SpecName('ES1')}} | {{Spec2('ES1')}} | Définition initiale. Implémentée avec JavaScript 1.0. | +| {{SpecName('ES5.1', '#sec-15.5.4.16', 'String.prototype.toLowerCase')}} | {{Spec2('ES5.1')}} |   | +| {{SpecName('ES6', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}} | {{Spec2('ES6')}} |   | +| {{SpecName('ESDraft', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}} | {{Spec2('ESDraft')}} |   | -

Compatibilité des navigateurs

+## Compatibilité des navigateurs -

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

+{{Compat("javascript.builtins.String.toLowerCase")}} -

Voir aussi

+## Voir aussi - +- {{jsxref("String.prototype.toLocaleLowerCase()")}} +- {{jsxref("String.prototype.toLocaleUpperCase()")}} +- {{jsxref("String.prototype.toUpperCase()")}} -- cgit v1.2.3-54-g00ecf