JavaScript/Reserved words/new
< JavaScript | Reserved words
(Redirected from JavaScript/Reserved Words/new)The new keyword[edit | edit source]
The new keyword is an operator that creates an object without members, calls it's constructor function with itself as the this operator, which initialises the object.
Examples[edit | edit source]
theArray = new Array();
theDate = new Date("Jan 3 1962");
theObject = new Object;