how to generate make a string a number in javascript code example Example: make number string js var num = 15; var n = num.toString();