.split() Method
var str = "The quick brown fox jumps over the lazy dog.";
//splitting by whitespace
var strSplit = str.split(" ");
console.log(strSplit);[ 'The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']Last updated
var str = "The quick brown fox jumps over the lazy dog.";
//splitting by whitespace
var strSplit = str.split(" ");
console.log(strSplit);[ 'The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']Last updated