Is there any expression where by an object\'s toString method is implicitly called overriding its valueOf method?
In the examples below, valueOf is alw
Is there any expression
Yes. Here's an example that will use toString:
toString
alert({ toString: function () { return "4"; }, valueOf: function () { return 6; } }); // alerts "4"