When using a button click event handler, if the callback function includes the input function, the figure automatically closes when the callback function finishes. After a single event and iteration ...
Javascript engine first looks for the variable/function being accessed in the local scope of the function, and if not found, it keeps on searching the lexical environment of its parent until it finds ...