DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+6 =
Submit