DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
string to array
let
str
=
'a,b,c,d'
let
result
=
str
.
split
(
','
)
;
//output:
[
'a'
,
'b'
,
'c'
,
'd'
]
Source by www.dyn-web.com #
PREVIOUS
NEXT
Tagged:
#string
#array
ADD COMMENT
Topic
COMMENT
Name
5+8 =
Submit