Home >Web Front-end >JS Tutorial >Detailed explanation of the toString() method of JavaScript's Number object
The
toString() method can convert the Number object into a string and return this string. This article will introduce to you the Number object of JavaScript toString() method, friends who are interested in knowledge about javascript objects methods, let’s learn together
The definition and usage of toString() method:
toString() method can Convert the Number object into a string and return this string.
Click to view more methods and properties of related Number objects (classes).
Grammar structure:
The code is as follows:
NumberObject.toString(radix)
Parameter list:
var a=new Number(3);
console.log(a.toString());
Output result: 3.
The above is the detailed content of Detailed explanation of the toString() method of JavaScript's Number object. For more information, please follow other related articles on the PHP Chinese website!