Previously I gave a brief introduction to closures in Javascript. Here I will attempt to provide more understanding on this topic. I will lead into the topic of closures by beginning with a look at an infamous problem with for loops in Javascript. I will also briefly touch on Immediately Invoked Function Expressions (IIFEs).
Tag: function
Returning in Javascript and Intoduction to Closures
Functions return a value of undefinded
by default, unless we explicitly tell it to return another value.
How do we do that?
Continue reading “Returning in Javascript and Intoduction to Closures”