filmov
tv
JavaScript closures || closure in JavaScript

Показать описание
Closure is the ability to access the outer level scope or outer function from inner level scope or inner function . even after the parent function has been terminated .Basically, JavaScript functions create closure.
To understand JavaScript closure just need to take two functions inner and outer take a variable in the outer function and try to access it in the inner function .the inner one is able to access because of the closure by default every piece of code in JavaScript has it own scope but in the JavaScript closures it access the outside of the scope as well that’s it
join in my group
Find me here
Linked in
instagram
facebook
twitter
quora
github
To understand JavaScript closure just need to take two functions inner and outer take a variable in the outer function and try to access it in the inner function .the inner one is able to access because of the closure by default every piece of code in JavaScript has it own scope but in the JavaScript closures it access the outside of the scope as well that’s it
join in my group
Find me here
Linked in
quora
github