What is Closure in Javascript?
Simple definition for closure in javascript will be inner function having access to its outer function scope. Let's try to understand this with a simple example. function showDetails(){ var name = "Tenzinwoz"; function showName(){ cons...
Apr 22, 20211 min read81
