DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
convert an array of strings to numbers
let result = ["1", "2", "3", "4"].map(i=>Number(i)); console.log(result);
PREVIOUS
NEXT
Tagged:
#convert
#array
#strings
#numbers
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit