This methods are very commonly use in JavaScript. Before jump into this tutorial, you must have the knowledge of this keyword, otherwise it will not work for you.
This is one of the most common questions in Javascript interviews. In general, the “this” keyword refers to an object depending on the situation and its uses.
To Simply say, Closure is a feature of a function that allows it to remember all the variables in its lexical scope even after the execution of the function