JSFiddle - React, Tailwind, and code Playground

by Andrey

JavaScript

var f1 = function(param) {
	this.p1 = param;
};
var obj2 = {
	prop2: 'p2'
}

obj1 = new f1('p1');
f1.prototype =  Object.create(HTMLElement.prototype);
console.log(obj1);