Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Javascript Hoisting

Hoisting Explained Video

  • Some variables and functions get hoisted to the top of the scope. Just the declaration, not the inialization.

    • Recommend to put all your variable declarations at the top of the function.
  • Functions are hoisted to the top too, but not function expressions.

Further reading

Comments