The console widget below allows for the editing and running
of JavaScript code. The area on the left is where output (from
the functions show
and print
) goes.
Some values can be clicked to further inspect them. The line
below this can be used to type JavaScript expressions and
evaluate them right away. On the right is the editor, where code
can be typed or loaded, and ran using the buttons below.
The 'Chapter X' list on the bottom of the page contains almost all the code found in the book. Click on the triangle to expand or collapse a list of snippets for a chapter. Then click on a snippet to load it, or click [run all] to run all code for a chapter. For chapters with big examples, the latter is the easiest way to see the examples in action.
The bottom right of the screen displays a separate frame, in which the code run through the console lives. The examples from some of the chapters (for example, the HTML created by chapter 5) will be displayed here.