String JavaScript Tutorial

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.