An editor helps you write and inspect code, but the runtime executes it. Choose browser or Node-based practice and verify that path before installing many extensions.
Before you begin
Know basic HTML and simple JavaScript expressions. Choose a browser or server runtime deliberately and record how the example is run.
Work through the idea
Make the state, input and expected result explicit before changing the interface. Check the calculation separately from the event handler. Use fictional data and inspect an invalid input as well as a normal one. A visible result should correspond to a completed operation, not merely to a clicked button.
- Create a small project folder
- Run one script in the intended runtime
- Use the debugger to inspect a variable
Practice task
Make a simple calculation script and stop at a breakpoint before its result is printed.
Check your result
Record the runtime command and explain where the program is actually executing.
A mistake to avoid
Do not treat an editor extension as a replacement for installing the required runtime.
Keep a review note
Save the inputs or scenario, your reasoning and the result you checked. Explain one assumption and one case that needs more work. Revise the exercise after feedback and distinguish what you demonstrated from what remains untested.
Official reference for further study
Explore the related learning path · Choose another worksheet
