how to split on whitespace upto 3 words in javascript code example
Example: split by whitespace javascript
var text = "hoi how are you";
var arr = text.split(/\s+/);
var text = "hoi how are you";
var arr = text.split(/\s+/);