I would like the code to be able to access the string "carros", in the following array:

var ourArray = [["carros", 4], 5, "casa"];

1 Answers

3
Jack Bashford On

You'd get the first element with index 0, then the first element of that array with index 0:

var ourArray = [["carros", 4], 5, "casa"];
console.log(ourArray[0][0]);