Possible Duplicate:
What is the difference between a function expression vs declaration in Javascript?
What is the difference in behavior between these two implementations? Is MyType
still a constructor function in Implementation 1
Implementation 1:
var MyType = function() {
};
var myObject = new MyType();
Implementation 2:
function MyType() {
}
var myObject = new MyType();