From be09117e29a989d13b6f18639886e9a064bfc854 Mon Sep 17 00:00:00 2001 From: Sanchez Eric Date: Tue, 15 Jun 2021 20:19:56 +0200 Subject: Update index.html (#1208) Fix of the variable name Xmas95 to noel95 to match the example above --- .../web/javascript/reference/global_objects/date/getmonth/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/fr') diff --git a/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html b/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html index ebc4889bbd..b328f30058 100644 --- a/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html +++ b/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html @@ -42,9 +42,9 @@ console.log(mois); //11

Note : Si besoin, on pourra récupérer le nom complet du mois ("Janvier" par exemple) en utilisant Intl.DateTimeFormat() avec un paramètre options. En utilisant cette méthode, il est plus simple d'internationaliser le site ou l'application :

var options = { month: 'long'};
-console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95));
+console.log(new Intl.DateTimeFormat('en-US', options).format(noel95));
 // December
-console.log(new Intl.DateTimeFormat('de-DE', options).format(Xmas95));
+console.log(new Intl.DateTimeFormat('de-DE', options).format(noel95));
 // Dezember
 
-- cgit v1.2.3-54-g00ecf