Ages 12–14 · Foundation
Pure function
Apply functions to justify a solution to the pure function task.
Understand the idea
A function has assumptions results and possible side effects.
Your challenge
Which describes a pure function?
- It must read the clock
- It must print
- Same inputs give same output without external changes
How to explore
- Identify the inputs, goal or constraint in this functions situation.
- Work through the stated rule or operation without adding assumptions.
- Check your proposed response against every relevant detail in the question.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space