Typing code exactly: case, spelling and paired symbols
JavaScript is case-sensitive, so console.log must be typed exactly. Every opening quote, bracket or brace needs a matching closing one, like the quotes and ( ) here.
Understanding Typing code exactly: case, spelling and paired symbols in ACARA Digital Technologies Years 7–8
What it does: Typing console in lowercase matches the name JavaScript knows. Console would cause an error. The ( after log is closed by ) before the semicolon, so the brackets are matched. JavaScript is case-sensitive. The keyword must be lowercase let. Let with a capital L is not recognised. Every opening quote needs a closing quote. The wrong line opens a string but never closes it. Misspelt keywords cause errors. The keyword is function, spelled exactly like that. The braces, round brackets and quotes are all paired, so this code is typed correctly.
Common mistakes: The string "Age: " is missing its closing quote, so the quote pairs are mismatched. It should be console.log("Age: " + age);. JavaScript is case-sensitive, so the keyword must be lowercase. Let is not the same as let. It should be let score = 10;.
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 562–580) 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
console.log("Hi");Fill in the Blanks
Spot the Error
Student with a class code? Join your class →