27 ) Which variable are deleted in JavaScript
when the page is closed? | 41 14 17
32
Answers
Answer:
Global variables live until the page is discarded, like when you navigate to another page or close the window. Local variables have short lives. They are created when the function is invoked, and deleted when the function is finished.
Closures are frequently used in JavaScript for object data privacy, in event handlers and callback functions, and in partial applications, currying, and other functional programming patterns.
To unset a variable in JavaScript, use the undefined. After that, use delete operator to completely remove it .
To stop the execution of a function in JavaScript, use the clearTimeout() method. This function call clears any timer set by the setTimeout() functions.
Getting emotional closure means that you can "close the book" on your situation and its associated pain. You can put that book of pain on the shelf and you will no longer have to take it down and read from it on a daily basis
please follow me and Mark me as brainlest please please please please please please please