For the questions that don’t fit in a textbook. Find their starting point
Fahahu

Ages 12–14 · Foundation

Side effect

Apply functions to justify a solution to the side effect task.

Understand the idea

A function has assumptions results and possible side effects.

Your challenge

Which operation is a side effect?

  • Returning a computed sum
  • Comparing two local numbers
  • Writing to an external file

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 HERE

Give that curiosity
somewhere to go.

Open the learning space

Discovery

Digital models simplify the real world. Explore with a grown-up and talk about what you notice.

Find something worth exploring

Explore free activities and printables, or learn about the separately paid Academy courses.