Naming functions with verbs
A function name is a camelCase verb phrase that says what the function does, like calculateTotal or printMenu. Start with a verb, make it meaningful and use no spaces.
Understanding Naming functions with verbs in ACARA Digital Technologies Years 7–8
What it does: checkPassword begins with the verb check, which shows the action the function performs. getHighScore joins the words together with no spaces and capitalises High and Score, which is camelCase. Meaningful names describe the job. doStuff could mean anything, but checkWinner tells you exactly what happens. camelCase starts with a lowercase letter, then each new word starts with a capital letter: getUserName. No underscores are needed. Short names like x do not explain the action. A verb phrase like convertTemperature makes the code easy to read. calculateTotal is a camelCase verb phrase that tells the reader what the function does. printMenu starts with a verb, is meaningful and has no spaces, so it matches the naming rule.
Common mistakes: A function name cannot contain spaces. Write the words together in camelCase: addScores. Function names use camelCase, not underscores. It should be printMenu, which also matches the call on line 4.
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 611–623) and word search (Modules 583–613) and word search (Modules 611–634).
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
calculateTotalFill in the Blanks
Spot the Error
Student with a class code? Join your class →