JSFiddle - React, Tailwind, and code Playground
JavaScript
function sayIt(){
console.log("this is :" + this);
console.log(this);
this.name = "a";
this.prin = function(){
console.log(this.name);
}
}
sayIt();
var a = new sayIt();
a.prin();