function trickyFunction() {
var obj = { a: 1 };
var anotherObj = obj;
obj.a = 2;
obj = { a: 3 };
anotherObj.a = 4;
return obj.a + anotherObj.a;
}
console.log(trickyFunction()); Post #1949
7.47K
CHALLENGE
- ❤ 12
- 🤔 6
- 👍 2