• White space between words and tabs are ignored
• Line breaks are ignored except within a statement
The SCRIPT Tag
alert("Welcome to the script tag test page.")
• Embedding code
• Inline code
• External file
Whitespace and Line Breaks:
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.
Semicolons are Optional:
var1 = 10 var2 = 20
But when formatted in a single line as follows, the semicolons are required:
var1 = 10; var2 = 20;
Note: It is a good programming practice to use semicolons.