num to str js code example
Example 1: javascript number to string
const toNumber = str => +str;
// Example
toNumber('42'); // 42
Example 2: number to string javascript
let string = "1";
let num = parseInt(string);
//num will equal 1 as a int