define side effects (impure function)
Answers
Answered by
1
Answer:
log() and alert() are impure functions because they have side effects (although they generate the same behavior and always return the same value for identical calls). Any function that changes the internal state of one of its arguments or the value of some external variable is an impure function.
Explanation:
Similar questions