From visual blocks to typed JavaScript
A text-based language where each block you snapped together becomes one line of code that you type exactly, and the computer follows it literally.
Understanding From visual blocks to typed JavaScript in ACARA Digital Technologies Years 7–8
What it does: Stacked blocks run in order and typed lines do too, so 'Start' prints before 'End'. Sequence is the same idea in both. The if block's condition and its inside blocks become the if keyword, a condition in brackets and a pair of braces holding the lines. Each block turns into one line of code. Instead of snapping a block in place, you type the line. JavaScript follows your text literally, so capital letters matter. console.log must be written in exactly this way. Computers follow code literally. They do not guess, so a spelling mistake causes an error. JavaScript is used by professionals to build websites, apps and games. Block coding is a good step towards it.
Common mistakes: prompt is spelled wrong. Typed code must be exact, so the computer cannot find promt. It should be prompt("Name?"). The variable name is misspelled. The computer follows the text literally and has no variable called scor. It should be console.log(score);.
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
JavaScriptFill in the Blanks
Spot the Error
Student with a class code? Join your class →