Q:

convert array string to number

// CONVERT ARRAY STRING TO ARRAY NUMBER
const arrStr = ["1", "3", "5", "9"];
const nuevo = arrStr.map((i) => Number(i));
console.log(nuevo);
// [1,3,5,9];
1
let x = [1,2,3,4,5]
let num = +x.join("")
1

New to Communities?

Join the community