How can a temporary variable be "saved" inside an event handler
Hello, quick question, consider the following code:
My question is, when we add the event listener for each instance of the button, even though
My question is, when we add the event listener for each instance of the button, even though
i is normally a temporary variable, it's value gets stored and can be referenced when we actually click on the button, can someone explain why pls.