15.5.1 String as a function

2010-07-08

string String([value])

When you call String as a function (instead of a new expression) it will do type conversion and return a string primitive.

Can be used as an interface to the internal ToString operation. Without a value, the empty string is returned.

String.length = 1