Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
new String(s) // Constructor function String(s) // Conversion function
When String( ) is used as a constructor with the new operator, it returns a String object, which holds the string s or the string representation of s. When the String( ) constructor is used without the new operator, it simply converts s to a primitive string and returns the converted value.