Error.prototype.message lab

41.7% Acceptance

In this lab, you will create a CustomError class that extends the built-in Error class. You will then create an instance of the CustomError class with a custom message, and log the message property of the error object to the console.

This lab will help you understand how to work with custom error messages by extending the Error.prototype and set the custom error message inside the constructor.