From 5cd9ca2118b979a68ac2778e762df391e94c43b1 Mon Sep 17 00:00:00 2001 From: Yanni Lapoyade Date: Fri, 7 Oct 2022 20:35:25 -0400 Subject: [PATCH] throw false --- .DS_Store | Bin 0 -> 6148 bytes puzzle.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..dc3af74249956e848411d92a4cb4fc44e409c6a3 GIT binary patch literal 6148 zcmeHKJ5B^K41I$V108H5wMU4^B?$Mzgcitt6YOzO*e&fWRl`emPb*Cw_rHWl^j)S%GrJp%Zl=g5%_ cmhq%E{jy_MP_t;ig%jf;V1$GU27ZBoH`R$aG5`Po literal 0 HcmV?d00001 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';