I have an array inside an array, and somehow it doesn't recognize the different values as separate, so that if I try to print the 2nd value it prints me the 2nd letter of the first value.
var name = ["John", "Alex"];
var food = ['pizza', 'banana', "cheese", ["bmw", "tesla"], name];
document.write(food[4][1]);
The array ['bmw', 'tesla'] works fine, its the name-array that acts weird.
food[4][0] outputs J (from John)
food[4][5] outputs A (from Alex).