How does a pure function handle dependencies or external variables?

  • Manages dependencies internally
  • Avoids external dependencies
  • Handles dependencies through callbacks
  • Utilizes global variables
In a pure function, dependencies are avoided to maintain purity. External variables could introduce side effects, violating the principle of purity.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *