JavaScript Programmer’s Reference Error.toString() (Method) Returns a string

JavaScript Programmer’s Reference Error.toString() (Method) Returns a string primitive version of an Error object. Availability: ECMAScript edition 3 JavaScript 1.5 JScript 5.0 Internet Explorer 5.0 Netscape 6.0 Netscape Enterprise Server 2.0 Opera 3.0 Property/method value type: String primitive JavaScript syntax: -myBoolean.toString() The value of the object is converted to a string value that represents its value. The value returned is implementation dependent. See also: Cast operator, Error.prototype, toString() Cross-references: ECMA 262 edition 3 section 15.11.4.4 Escape sequence () (Definition) A means of defining characters that cannot easily be typed on a keyboard. Availability: ECMAScript edition 2 Opera 3.0 The string delimiter characters present problems if you need to include them inside a string. Typically you may want to include a single quote as an apostrophe, as in the contraction of do not to don’t. Or you may want to enclose a spoken comment inside double quotation marks. Because the single and double quotes are generally interchangeable in JavaScript, in most cases the problem is easy to solve. To use ” inside a string, you can do it like this: myString = ‘A man said “hello” to me’; Using a double quote to include single quotes in your string, you might do this: myString = “Don’t do that”;
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services

Leave a Reply