Explain impure methods with an example
Answers
Answered by
0
When a function depends on variables or functions outside of its definition block, you can never be sure that the function will behave the same every time it's called. For example the mathematical function random() will give different outputs for the same function call.
Similar questions