Closures can be used to create ________ functions, which can maintain their own state independently.

  • anonymous
  • arrow
  • stateful
  • pure
Closures can be used to create stateful functions. These functions can maintain their own state independently because they have access to the variables in their containing closure. This allows them to remember data across multiple function calls.
Add your answer
Loading...

Leave a comment

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