Javascript and Hoisting Sep 12th, 2014 Hoisting is when JavaScript moves the definition of some code to the top of the closure. Source