Functions & Programming Concepts · Level 2 of 5
Side Effect
An observable change beyond a function's returned value.
Mutating shared state, writing files, and sending messages are common examples.
Example
A routine updates a global counter when called.
Listen to the definition and example
Audio transcript
Side Effect. An observable change beyond a function's returned value. Mutating shared state, writing files, and sending messages are common examples. For example: A routine updates a global counter when called.
Explore this concept
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.