Define closure ? Get link Facebook X Pinterest Email Other Apps January 23, 2019 Define closure. In JavaScript, we need closures when a variable which is defined outside the scope in reference is accessed from some inner scope. var num = 10; function sum() { document.writeln(num+num); } sum(); Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment