convert a number variable to string in javascript code example Example: change no to string in js var num = 15; var n = num.toString();