Closures : Today I Re-learnt

As a full stack developer for many years I assumed I understood closures well enough to explain a new developer on my team.

Well I was mistaken!!

Thankfully I found this extremely well written article on the topic

What floored me was this simple sentence that summarized the learning!

The closure is a function that accesses its lexical scope even executed outside of its lexical scope.

The link is a must read

#javascript #closures #functional

--

--