scrimba
Learn Basic JavaScript
Accessing Nested Arrays
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Accessing Nested Arrays
AboutCommentsNotes
Accessing Nested Arrays
Expand for more info
index.js
run
preview
console
// Setup
var myPlants = [
{
type: "flowers",
list: [
"rose",
"tulip",
"dandelion"
]
},
{
type: "trees",
list: [
"fir",
"pine",
"birch"
]
}
];

// Only change code below this line

var secondTree = ""; // Change this line

console.log(secondTree)
Console
"maps"
,
index.html
-1:10