JSFiddle - React, Tailwind, and code Playground

by spechackers

JavaScript

function User(){}
User.prototype.x = 10;
var usr = new User();
console.log("first ", usr.x);

User = null;

var b = new usr.constructor();
console.log("Second ", b.x);