Because we can use spaces, tabs, and newlines freely in your program so we are free to format and indent your programs that makes program readability.
Semicolons are Optional:
var var1 = 10
var var2 = 20
But when we want to two or more statemet in one list must seperate by semicolons as:
var var1 = 10; var var2 = 20;
Note: It is a good programming practice to use semicolons.
- Any text written between the characters /* and */ is treated as a comment. This may span multiple lines.
// This is a comment. It is similar to comments in C++, C#
* It is very similar to comments in C Programming