Running a JavaScript program and viewing the console
The panel beside the editor where your program's output appears after you press Run. Each console.log shows in order, and you run the program again after every change.
Understanding Running a JavaScript program and viewing the console in ACARA Digital Technologies Years 7–8
What it does: This line is typed in the editor. After you press Run, the console shows Score: 10. Code only produces output after you run it. Typing it is not enough. Output appears in the same order as the code runs, from top to bottom. JavaScript can run in Node.js or in a browser. Both have a console that shows console.log output. You write code in the editor and read the results in the console. The console only updates when you press Run. Run again to see the new output. Every console.log that runs adds its own line to the console, in order.
Common mistakes: The text "End is missing its closing quote, so the program will not run and the console shows an error instead of the output. It should be console.log("End");. consol is misspelled, so JavaScript cannot find it and the console shows an error. It should be console.log("Done");.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 522–560) and word search (Modules 522–580).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
consoleFill in the Blanks
Spot the Error
Student with a class code? Join your class →