/

HTML / CSS / JavaScript Tutorial

JavaScript Error method: toString()

[this page | pdf | back links]

The toString() method (when applied to a JavaScript Error object) returns a string representation of the object.

 

It has the following syntax (with no parameters):

 

error.toString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Error Objects


Desktop view | Switch to Mobile