diff --git a/curriculum/challenges/english/blocks/lab-profile-lookup/5688e62ea601b2482ff8422b.md b/curriculum/challenges/english/blocks/lab-profile-lookup/5688e62ea601b2482ff8422b.md index 3360bfced7d..fc433daa123 100644 --- a/curriculum/challenges/english/blocks/lab-profile-lookup/5688e62ea601b2482ff8422b.md +++ b/curriculum/challenges/english/blocks/lab-profile-lookup/5688e62ea601b2482ff8422b.md @@ -24,7 +24,7 @@ For this example imagine there is a contact named Akira Laine, the `lookUpProfil # --before-each-- ```js -contacts = [ +const _contacts = [ { firstName: "Akira", lastName: "Laine", @@ -50,6 +50,8 @@ contacts = [ likes: ["JavaScript", "Gaming", "Foxes"], }, ]; + +contacts = structuredClone(_contacts); ``` # --hints-- @@ -111,6 +113,13 @@ assert.strictEqual(lookUpProfile('Bob', 'potato'), 'No such contact'); assert.strictEqual(lookUpProfile('Akira', 'address'), 'No such property'); ``` +The `contacts` array should remain unchanged after running `lookUpProfile` + +```js +lookUpProfile("Sherlock", "likes"); +assert.deepEqual(contacts,_contacts); +``` + # --seed-- ## --seed-contents--