SOURCE


const a = {  
  i: 1,  
  toString: function () {
    return a.i++;
  }
}

console.log(a == 1 && a == 2 && a == 3);
console 命令行工具 X clear

                    
>
console