Error
An object describing a problem that interrupted normal execution.
What is Error in JavaScript?
Error — An object describing a problem that interrupted normal execution.
function reserve(seats) {
if (seats < 1) {
throw new Error("Seat count must be positive");
}
}
Level: Journeyman · More JavaScript terms at this level
Updated