Example
The first line of the following code creates an empty object using the object initializer operator; the second line creates a new object using a constructor function.
object = {};
object = new Object();
ok so to init object as {} is more faster then new Object(), same with Array ([] is more faster then new Array()). My question is is there ant advantages with using constructor function or it is the same?