The script tag takes two important attributes âˆ’
This function can be used to write text, HTML, or both. Take a look at the following code.
This code will produce the following result âˆ’
Whitespace and Line Breaks
Semicolons are Optional
But when formatted in a single line as follows, you must use semicolons âˆ’
Note âˆ’ It is a good programming practice to use semicolons.
Any text between the characters /* and */ is treated as a comment. This may span multiple lines.