Converting Numbers to Strings in Javascript


Numbers can be converted to strings using the .toString() method.

Source Code

let number = 123;
let text = number.toString();
console.log(text); // "123"
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments