6/6/2023 0 Comments You dont know js scope closureThis comes from one of Kyle Simpson’s books:Ĭlosure is when a function is able to remember and access its lexical scope even when that function is executing outside its lexical scope. Here is my favorite definition of closure. You will find more programming situations where you can apply closure. If you understand the concept, then you are able to take advantage of what it offers. So is it necessary to understand closure? However, the funny thing about closure is that many JavaScript developers take advantage of it before they understand what it really is. Closure seems to be one of those concepts in JavaScript that can be a bit mysterious.
0 Comments
Leave a Reply. |