Side effects
Side effects can occur in one of two ways.
- By reassigning built-in options
- By calling a function that produces side effects
A function produces side effects when it is explicitly declared to have side effects or when it calls a function that itself produces side effects.