Computer Science, asked by prabha4356, 2 months ago

define side effects (impure function)​

Answers

Answered by itspiyushhere
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