Lesson 1 > Get Started


This is your working desktop. Before we begin, click here to take a quick tour.
<script type="text/javascript">
  alert('Hello World!');
This is the code you see right now in the right box. You can see that it begins with <script type="text/javascript"> and ends with </script>.
These are the JavaScript tags. We must enclose our code these tags in order for the browser to execute it as JavaScript. Later on, we will see in which cases we do not have to use these tags. But let's use them for now.
This example displays a message box with the text "Hello World!". Click on the execute button to see it in action.
What JavaScript actually does, is call the function named alert, and pass to it the text that is enclosed within the single quotes, in our case Hello World!.
One more very important thing is the semicolon (the Greek question mark) at the end of the line. The semicolon, declares the end of the command and cannot be omitted.
Play a little bit with the alert function, and when you are ready click on the begin button to begin your free lessons.