JSFiddle - React, Tailwind, and code Playground

by Rijo R

JavaScript

var X = function() {
this.name = 'HAri';
	this.getName = function() {
  return this.name + 'Hello';
  }
  console.log(this);
}
var x1 = new X();
console.log(x1.getName());