for comments, CSS uses /* your multiline comment here */ and // your single line comment here, and JavaScript can use or // for single line comments. It also covers that JavaScript ignores whitespace and newlines, semicolons are optional if statements are on new lines, but required if on the same line."> for comments, CSS uses /* your multiline comment here */ and // your single line comment here, and JavaScript can use or // for single line comments. It also covers that JavaScript ignores whitespace and newlines, semicolons are optional if statements are on new lines, but required if on the same line.">
Javascript (TutorialsPoint)
Javascript (TutorialsPoint)
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.
<script type="text/javascript">
var1 = 10
var2 = 20
</script>
<script type="text/javascript">
</script>