Home > Article > Web Front-end > toString() method of JavaScript Number object_javascript skills
Definition and usage of toString() method:
The 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:
Parameter list:
Example code:
var a=new Number(3); console.log(a.toString());
Output result: 3.