How do you get the same result as the variable below 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)