diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..dc3af74 Binary files /dev/null and b/.DS_Store differ diff --git a/puzzle.js b/puzzle.js index b809cc9..3b8dca1 100644 --- a/puzzle.js +++ b/puzzle.js @@ -1,8 +1,8 @@ const variablesReferenceTest = () => { const x = { attribute1: 1, attribute2: 2 }; - const y = x; + const y = {...x}; x.attribute1 = 3; - + //Modify the code above so we reach the "throw 'False'" statement if (x.attribute1 == y.attribute1) { throw 'True';