To convert a number to a string with JavaScript use the toString()
method:
let number = 10
let numberToString = number.toString()
console.log(numberToString)
// "10"
To convert a number to a string with JavaScript use the toString()
method:
let number = 10
let numberToString = number.toString()
console.log(numberToString)
// "10"