JSFiddle - React, Tailwind, and code Playground
JavaScript
var ob = {
x:3,
y:4,
add: function()
{
var that = this;
function aa()
{
return that.x + that.y;
}
return aa();
}
}
alert(ob.add());// kết quả là 7