Comments
HTML ~ <!-- your comment here -->
CSS ~ /* your multiline comment here */
// your single line comment here
Javascript ~ <!-- your comment goes here //-->
1. document.write() -> method/function which writes a string text to our
HTML document.
2. Javascript ignores spaces, tabs and newlines so, you are free to format and
indent your code freely to make it look consistent, neat and understandable.
3. Semicolons are optional if each statement is placed on a newline.
<script type="text/javascript">
var1 = 10
var2 = 20
</script>
But place semicolons necessarily if each statement is formatted on the same
line.
<script type="text/javascript">
var1 = 10; var2 = 20;
</script>