<html> <body> <script> <!-- document.write("Hey there!") //--> </script> </body> </html>
The output produced by this code will be
White Spaces, Line Breaks and Semicolons
<script> var x = 15 var y = 25 </script>
When multiple statements are placed are on a single line, then semicolons are necessary to determine the end of the statements.