JSFiddle - React, Tailwind, and code Playground

by somya_kashyap3

JavaScript

// "0" ==  1

/*
var a = "1";

if(a.valueOf()){
console.log("hi");
}
*/


function n(name, age)  {
	this.name = name;
  this.age = age;
  this.toString = function(){
  console.log(this.name);
  };
}

var b = new n("cicy", 45);
console.log(b.name);