fix(curriculum): Remove unnecessary comments (#41776)
* Remove unnecessary comments * Remove last comment, change instruction wording
This commit is contained in:
@ -40,7 +40,7 @@ ourPets[1].names[0];
|
|||||||
|
|
||||||
# --instructions--
|
# --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--
|
# --hints--
|
||||||
|
|
||||||
@ -72,7 +72,6 @@ assert(/=\s*myPlants\[1\].list\[1\]/.test(code));
|
|||||||
## --seed-contents--
|
## --seed-contents--
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Setup
|
|
||||||
var myPlants = [
|
var myPlants = [
|
||||||
{
|
{
|
||||||
type: "flowers",
|
type: "flowers",
|
||||||
@ -92,9 +91,7 @@ var myPlants = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// Only change code below this line
|
var secondTree = "";
|
||||||
|
|
||||||
var secondTree = ""; // Change this line
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
@ -119,7 +116,5 @@ var myPlants = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// Only change code below this line
|
|
||||||
|
|
||||||
var secondTree = myPlants[1].list[1];
|
var secondTree = myPlants[1].list[1];
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user