JSFiddle - React, Tailwind, and code Playground

by hmahida

JavaScript

const a = {
	currentVal:0,
  valueOf: function(){
  	return this.currentVal+=1
  }
};

alert(a==1 && a==2)