JavaScript · Middle · Question 50 of 75
What does {} === {} return?
- ✓Correct answer:
false - 2
true - 3
TypeError
Explanation
Objects are compared by reference: two literals are two different objects. Comparing contents needs your own deep-equal function or a library. This matters for useEffect dependencies and memoization in React.