new

creating objects using `new F()` syntax.

JSvalueobjectcreate ⟩ new

(operator) (🌟 table of operators)

create objects by using constructor functions. (👉 callable vs. constructable)

new Object() 
new Point(2,3)

new Object        // empty pair of parentheses can be omitted
new Date

🈯 synonyms: "object creation expression"

class can only be instantiated with the new operator — attempting to call a class without new will throw a TypeError

Last updated