Difference between Literal and Constructor notation


Hi everyone,

Could somebody please explain to me the difference between Literal and Constructor notation? I keep getting confused.



var objectLiteral = { //Contained in Curly braces
property1: "Key value", //Properties Assigned with a colon
property2: "Key value",


var objectConstructor = new Object; //Declared as empty object
objectConstuctor.property1 = "Key Value"; //Properties assigned via "Dot-Notation"


Thank you for your help!