JSFiddle - React, Tailwind, and code Playground
JavaScript
function cat() {
return {
nameCat : 'boris',
legs : 4
}
}
var x = cat();
var y = cat();
alert (x.legs);
alert (y.legs);
if (x.legs == y.legs) {
alert ('nyet')
}
function cat() {
return {
nameCat : 'boris',
legs : 4
}
}
var x = cat();
var y = cat();
alert (x.legs);
alert (y.legs);
if (x.legs == y.legs) {
alert ('nyet')
}