diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-objects.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-objects.md index d94ce6c367b..9d0a1d503c5 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-objects.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-objects.md @@ -51,6 +51,12 @@ Your code should use dot and bracket notation to access `myStorage`. assert(/=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]/g.test(code)); ``` +`gloveBoxContents` should still be declared with `const`. + +```js +assert.match(code, /const\s+gloveBoxContents\s*=/) +``` + # --seed-- ## --after-user-code--