this.color = "blue";
(function(_this) {
setInterval(function() {
if (_this.color !== "red") {
_this.color = "red";
} else {
_this.color = "blue";
} console.log(_this)
}, 1000)
})(this)
this.color = "blue";
(function(_this) {
setInterval(function() {
if (_this.color !== "red") {
_this.color = "red";
} else {
_this.color = "blue";
} console.log(_this)
}, 1000)
})(this)