Practice Tracing Code

Trace the code in the script from the top down on scratch paper.
The objective is to figure out what the variables contain after the script is done executing.
See if your answers match what the document.write() statement shows in a Web browser.

This might seem like a strange example, but understanding this will go a long way helping you understand variable assignment, which will be crucial as we move forward.