Answers for "turning an array of strings into a number"

11

convert an array of strings to numbers

let result = ["1", "2", "3", "4"].map(i=>Number(i));
console.log(result);
Posted by: Guest on February-24-2021

Code answers related to "turning an array of strings into a number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language