Code-Samples/javascript/39.1_datatype_code.html String() method is used to convert to variable, value or expression to String type.