JSFiddle - React, Tailwind, and code Playground

by hammerbrostime

JavaScript

function constructorQuestion() {
    alert("this is the original constructor");
};

c = new constructorQuestion();

constructorQuestion.constructor = function() { alert("new constructor");}

howComeConstructorHasNotChanged = new constructorQuestion();