JSFiddle - React, Tailwind, and code Playground

by shivaay123

JavaScript

function func() {
	var as = 1;
	this.s = 500;
}

func.prototype.k = 1000;

var obj = new func();
document.write(obj.s);
document.write("\n");
document.write(obj.k);