#Constructors Just Because Just another document on constructors because I think they're pretty cool, and somebody asked about prototype yesterday.
##Function / variable hoisting We'll take a short look at this behavior of instantiating a constructor in a way which appears to be prior to declaration. But first, just a bit of info on types of functions in JavaScript, namely, named functions and anonymous functions:
function someFn() {}
// Named function, will be hoisted within scopevar someFn = function() {}
// Anonymous function with pointer. Will not be hoisted. Available only after declarationvar someFn = function someFn() {}
// Named function with pointer. Will not be hoisted (var nor function). It may help in stack tracing, but not sure why you would use this// Anonymous function with pointer. Will be hoisted because of violation of scope, will always be global, and will throw exception in strict mode. Don't do thissomeFn = function() {}