Skip to content

Glossary: JavaScript Basics

new

Also written: new Date, new Error

A keyword that creates a fresh value of a built-in kind, such as `new Date()` or `new Error("message")`.

Where the book teaches it

Related terms

throw