logo

generated by autopages

Archives :: closures

Practising closures in JavaScript
most recent
Practising closures in JavaScript

JavaScript is a very function-oriented language. As we know, functions are first class objects and can be easily assigned to variables, passed as arguments, returned from another function invocation, or stored into data structures. A function can access variable outside of it. But what happens when an outer variable changes? Does a function get the most recent value or the one that existed when the function was created? Also, what happens when a function invoked in another place - does it get access to the outer variables of the new place?
2018-12-17

journal index

Looking for other categories or post? Way back to the jounral index page.

back
twitter github weibo linkedin
to top