Can you create a private variable using closure?
Yes. Variables inside the outer function cannot be accessed directly, only via inner
functions.
Example: See createCounter() above.
Yes. Variables inside the outer function cannot be accessed directly, only via inner
functions.
Example: See createCounter() above.