JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
JavaScript
const ob = {
name: 'abdul',
sayName: function() {
var self = this;
console.log('printing result: ' + self.name);
}
};
Promise.resolve('c').then(ob.sayName);
Promise.resolve().then(() => ob.sayName());