how to convert num to str in js code example Example: number to string javascript var num = 15; var n = num.toString(); /* now */ "15"