JavaScript konvertieren die Nummer in Zeichenfolge
var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"
Grepper
var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"
const num = 123; //> type number 123
const str = num.toString(); //> type string "123"