Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string array to number array javascript

const stringArr = ["5", "4", "6", "2"];

const numArr = stringArr.map((item) => parseInt(item, 10));
 
PREVIOUS NEXT
Tagged: #string #array #number #array #javascript
ADD COMMENT
Topic
Name
3+9 =