From de5c456ebded0e038adbf23db34cc290c8829180 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:49:24 +0100 Subject: unslug pl: move --- .../reference/lexical_grammar/index.html | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 files/pl/web/javascript/reference/lexical_grammar/index.html (limited to 'files/pl/web/javascript/reference/lexical_grammar/index.html') diff --git a/files/pl/web/javascript/reference/lexical_grammar/index.html b/files/pl/web/javascript/reference/lexical_grammar/index.html new file mode 100644 index 0000000000..ad8e73f32c --- /dev/null +++ b/files/pl/web/javascript/reference/lexical_grammar/index.html @@ -0,0 +1,55 @@ +--- +title: Komentarz +slug: Web/JavaScript/Referencje/Komentarz +tags: + - Dokumentacja_JavaScript + - Dokumentacje + - JavaScript + - Wszystkie_kategorie +translation_of: Web/JavaScript/Reference/Lexical_grammar#Comments +translation_of_original: Web/JavaScript/Reference/Code_comments +--- +

 

+

Podsumowanie

+

Uwagi od programisty wyjaśniające działanie kodu. Komentarze są ignorowane przez interpreter.

+ + + + + + + + + + + + + + +
Komentarze
Zaimplementowane w:JavaScript 1.0, NES2.0
Wersja ECMA:ECMA-262
+

Składnia

+

// tekst komentarza

+

/* wieloliniowy tekst komentarza */

+

Opis

+

JavaScript obsługuje komentarze w stylu Javy:

+ +

Przykłady

+

Przykład: Komentarz jednoliniowy

+
// To jest komentarz jednoliniowy.
+var intAge = 37; //To jest inny komentarz
+
+

Przykład: Komentarz wieloliniowy

+
/* To jest komentarz wieloliniowy.
+   Może być dowolnie długi i zawierać dowolne znaki,
+   za wyjątkiem innych komentarzy wieloliniowych. */
+
+

 

+
+  
+

{{ languages( { "en": "en/Core_JavaScript_1.5_Reference/Comments/comment", "es": "es/Referencia_de_JavaScript_1.5/Comentarios/comentario", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Commentaires", "ja": "ja/Core_JavaScript_1.5_Reference/Comments/comment" } ) }}

-- cgit v1.2.3-54-g00ecf