JSFiddle - React, Tailwind, and code Playground

by Viet27th

JavaScript

function a() {
	this.b=2;
  this.n = function() {
  	console.log(this )
    this.h = function () {
    	console.log(this)
    }
    console.log(this)
  }
/*   this.d = function() {
    console.log(this)
  } */
  this.n();
 
}
let dp = new a;