WhiteSpaces and LineBreaks
Because you can use spaces, tabs, and newlines freely in your program so you are free to format and indent your programs in a neat and consistent way that makes the code easy to read and understand.
var1 = 10
var2 = 20
But when formatted in a single line as follows, the semicolons are required:
var1 = 10; var2 = 20;
· Any text 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++
* It is very similar to comments in C Programming