Hoisting in JavaScript

Everyone’s heard the all too familiar, JavaScript is an interpreted language spiel. That’s only partly true. Certain instances¬† can catch unwary developers out about this idiosyncratic run-time behaviour. When a JavaScript engine parses a code file, a global execution environment called the execution context is created. This occurs before the file is executed where functions, […]