Answers for "js sentence to array"

0

js sentence to array

var str = "This is an amazing sentence.";
var words = str.split(" ");
console.log(words);
//["This", "is", "an", "amazing", "sentence."]
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language