12345678910



Question 1: What will be the output?

alert(({ valueOf:function() { return 2; } }) == 2);

1. Error in the code.
2. false
3. true