top | item 7586109

(no title)

antinitro | 12 years ago

var i=0;

var b = {};

b.valueOf = function () {

  return ++i:
};

if (b==1 && b==2) {//success}

discuss

order

gkop|12 years ago

  var i=0;
  var b = {};
  b.valueOf = function () {
    return ++i;
  };
  if (b==1 && b==2) { console.log("success")}