Javascript - Comments

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

Language - Comment in Javascript

3 - Syntax

// This is a comment
/* This 
       one 
             also 
                   but on multiple lines
*/
 
var a = /* It can also appears in the middle of an expression */ 42;
console.log(a);

Advertising