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