var variable = new Error(); var variable = new Error(num); var variable = new Error(num, description);
The Error object contains information about errors. The Error() constructors can be used to create custom errors. The arguments and properties associated with the Error object are listed in Table 9.8.