August 1999
Intermediate to advanced
1488 pages
72h 53m
English
string.toSource()
String.toSource()
The toSource() method of the String object is not defined in the first version of the ECMAScript standard, but is proposed for version 2. If this method is invoked on the core String object, it will return something like the following:
function String() { [native code] }
If it is invoked on an instance of the String object, it will contain the source of the instance you created. In Listing 6.258, the result of this application of the method should be something like the following:
(new String("Hello, World!"))
Listing 6.258 creates an instance of the String object. The toSource() method ...
Read now
Unlock full access