In the above example, the number 5 is printed in the logs as the 5th line is the line in which an error is thrown.
When the error event is fired, the number 7 is printed in the logs as the 7th line is the line in which an error is thrown.
Supported Browser: The Error.prototype.lineNumber property can only run on Firefox.
My Personal Notes arrow_drop_up
Please Login to comment...