JSFiddle - React, Tailwind, and code Playground

by Narayan Prusty

JavaScript

var o = {
    "profession" : "Web Developer",
    "website" : "qnimate",
    "blogging" : "blogging at " + this.website,//here "this" points to the o object.
    "func" : function(){console.log(this.blogging}
}

o.func();//func() is invoked using o object therefore "this" inside func points to o object.