Consider the following code… let floors1 = [ { floor: 5, ha…
Consider the following code… let floors1 = [ { floor: 5, hasCoffee: false, hasMints: true }, { floor: 6, hasCoffee: true, hasMints: false }, { floor: 7, hasCoffee: false, hasMints: false },]let floors2 = […floors1];floors2.push({floor: 8, hasCoffee: true, hasMints: true});floors2[0].hasCoffee = true; After executing this code, how many objects held by floors1 will have a key of hasCoffee with a value of true?
Read Details