diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-arrays.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-arrays.md index 247c0f2eab..3d16e1f9f4 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-arrays.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-arrays.md @@ -40,7 +40,7 @@ ourPets[1].names[0]; # --instructions-- -Retrieve the second tree from the variable `myPlants` using object dot and array bracket notation. +Using dot and bracket notation, set the variable `secondTree` to the second item in the `trees` list from the `myPlants` object. # --hints-- @@ -72,7 +72,6 @@ assert(/=\s*myPlants\[1\].list\[1\]/.test(code)); ## --seed-contents-- ```js -// Setup var myPlants = [ { type: "flowers", @@ -92,9 +91,7 @@ var myPlants = [ } ]; -// Only change code below this line - -var secondTree = ""; // Change this line +var secondTree = ""; ``` # --solutions-- @@ -119,7 +116,5 @@ var myPlants = [ } ]; -// Only change code below this line - var secondTree = myPlants[1].list[1]; ```