javascript how to string a number code example Example: javascript number to string const toNumber = str => +str; // Example toNumber('42'); // 42