-2
How to achieve the same result of variable down in the array?
// Variável
var str = "How are you doing today?";
var res = str.split(" ", 3);
document.write(res)
// Array
var str = ["How are you doing today?"];
var res = str.split(" ", 3);
document.write(res)
make a loop of
str
and Voce can give a split...str[i].split(" ", 3)
– fsi