Code-Samples/javascript/39.4_datatype_code.html Number() method is used to convert a variable, value or expression to number type.