In this tutorial, we’re going to do a simple
<script> alert( 'Hello, world!' ); </script>
alert( 'Hello, world!' );
It is simply an alert with information
Hello World! within the parenthesis, and then it ends with a semicolon.
If you save the above code to a file named like
helloworld.html and then view it in a browser, you will get a pop-up box saying
- Each statement ends with a semicolon.