JavaScript reduce(), some(), and every() method explained
๐2๐ฅ1
Forwarded from Web design & ๐ development
CHALLENGE
๐ดWhat will be output??
const obj1 = { a: 1, b: { c: 2 } };
const obj2 = { ...obj1 };
obj1.b.c = 3;
console.log(obj2.b.c);
๐ดWhat will be output??
๐4โค1