Link Search Menu Expand Document

String Constructor

Explanation Initialize the String object.
Call format var str = new String( [ text_1 [, text_2 [, … ] ] ] )
Return value String object
Arguments String text_n Value to initialize
If you specify more than one, it will be initialized with the concatenated character string.
Exception None
Example of use
var str = new String("ABC", "DEF");
print(str, "\n");
    
Related item