Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sentence to array

var str = "This is an amazing sentence.";
var words = str.split(" ");
console.log(words);
//["This", "is", "an", "amazing", "sentence."]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #sentence #array
ADD COMMENT
Topic
Name
7+6 =