JSFiddle - React, Tailwind, and code Playground
by jayrmotta
JavaScript
function foobar() {
alert(this);
}
foobar();
var x = new foobar();
alert(typeof(foobar));
alert(typeof(x));
alert(x instanceof foobar);
by jayrmotta
function foobar() {
alert(this);
}
foobar();
var x = new foobar();
alert(typeof(foobar));
alert(typeof(x));
alert(x instanceof foobar);