No offense at all. This is mostly correct but i think it should still be proof read. from the callback section to the iife code. for instance this block
Well, hoisting is kind of overrated. It's not quantum physics. Though, I do get your point. In an overview of functions, I felt that it was necessary to touch on the nuances of some of these function types. It just so happens that hoisting is one of them.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
No offense at all. This is mostly correct but i think it should still be proof read. from the
callback
section to theiife
code. for instance this blockwould no longer need the
self
hack as function like here:Casually tossing in 'hoisting' when discussing function declaration/expression may not be great for beginners?
Thanks. Forgot to fix that.
Well, hoisting is kind of overrated. It's not quantum physics. Though, I do get your point. In an overview of functions, I felt that it was necessary to touch on the nuances of some of these function types. It just so happens that hoisting is one of them.