対の二行のうち、下はリテラルを使っています。上下とも同じ意味です。
var myObject = new Object(); var myObjectLiteral = {}; console.log(myObject.constructor, myObjectLiteral.constructor); var myArray = new Array('foo','bar'); var myArrayLiteral = ['foo','bar']; console.log(myArray.constructor, myArrayLiteral.constructor); var myFunction = new Function("x","y","return x*y"); var myFunctionLiteral = function(x, y) {return x*y}; console.log(myFunction.constructor, myFunctionLiteral.constructor);