JSFiddle - React, Tailwind, and code Playground
by mvasilkov
JavaScript
$()
alert(
a == 0 && a == 1 && a == 2
// returns true
)
function $() {
Object.defineProperty(window, 'a', {
get: function () {
return typeof _a == 'number'?
++_a: (_a=0)
}
})
}