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, […]

JSON and JavaScript Objects

JavaScript Object Notation (JSON) is the lightweight alternative to tag laden XML used as data exchange format. What it is, precisely, is a method of data transmission based on JavaScript’s object literal syntax. JavaScript objects are containers which store key value pairs of attributes, functions and other objects of the following appearance: var anObject = […]