creating an error and excess through error method in javascript code example
Example: javascript throw new error
throw new Error("Error message here"); // Uncaught Error: Error message here
throw new Error("Error message here"); // Uncaught Error: Error message here