one = 1; two=2; three=3;
The following statements are same.
var one =1; var one = 1; var one = 1;
A comment is a single or multiple lines, which give some information about the current program. Comments are not for execution.
Write comment after double slashes // or write multiple lines of comments between/* and */
var one =1; // this is a single line comment /* this is multi line comment*/ var two = 2; var three = 3;
- A multi line comment can be wrapped between /* and */. Single line comment can start with //.