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...
tenzinwoz.hashnode.dev1 min read