Object and Array question

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?

There’s no difference except for if you want to specify the length of the array when you create an instance; then you need the constructor.

10x for answer :slight_smile: