JSFiddle - React, Tailwind, and code Playground JavaScript var b = function(){} b.prototype.c = 2 var a = {} a.constructor = b alert(a.c)