Ch1 - Output . Ch2 - Sequence . Ch3 - Variables . Ch4 - Input
Move to the JT window, click 'Clear' then paste in the code.
To execute the program, click Run.
Click Trace to step it a line at a time. In the pop-up box, click OK to step to the next instruction. To stop tracing, click Cancel. (A JavaScript error will be shown, for line 200. Ignore this by choosing the No option. Ideally, switch off Javascript errors in your browser)
Click Pretty to format the code neatly.
The display in the top left quarter shows line numbers and variable values. This is refreshed after every assignment statement is executed (i.e. whenever any variable changes). You will use this feature later.
Now we will write some programs.
or here******.
Click on the 'Run' button, and note the text that appears in the bottom-right Results area. It is:
Hello Worldon a single line.
Here, some introductory points are covered, to be explained in more depth later.
The semicolon ends every statement - the problem is that every line of the above is not technically a statement so you can't litter semicolons around with abandon. In fact, there is only one statement - the print - in the above.
Note on Browsers
IE is recommended at present. The Mozilla version does not work with blank lines. Put a space on blank lines if you use e Mozilla)
Ch1 - Output . Ch2 - Sequence . Ch3 - Variables . Ch4 - Input