Converts a number to a string, optionally in a given radix.
- Category: JS Number Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Number.prototype.toString()" in one sentence, then back it up with a tiny example
// Number.prototype.toString() — minimal example
console.log("Number.prototype.toString()");Tip
Quick recall: "Number.prototype.toString()" — converts a number to a string, optionally in a given radix.