Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js string to array

str = 'How are you doing today?';
console.log(str.split(' '));

>> (5) ["How", "are", "you", "doing", "today?"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #string #array
ADD COMMENT
Topic
Name
8+4 =