From 50e356378ecfb4a6202c607d3b0bdef31ba8aeb2 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Wed, 24 May 2023 01:56:06 -0700 Subject: [PATCH] fix(curriculum): test that assignment is unchanged (#50490) * fix(curriculum): test that assignment is unchanged * chore: apply gikf's review Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --------- Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../basic-javascript/accessing-nested-objects.md | 6 ++++++ 1 file changed, 6 insertions(+) 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--