JSFiddle - React, Tailwind, and code Playground

by habla

JavaScript

function Foo(appName){
    this.name = appName;      
}

Foo.prototype.Bar = function(){
   alert(this.name)
}

//var a = new Foo("baz");
//a.fuck = function(){alert('shithead')};

//a.Bar();
//a.fuck();

//alert(a['Bar']());
//alert('Trust in me, and you will find .... '+1/0);

//funobject = JSON.parse('{"a":"function(){return 8};"');
//alert(funobject.a());
//alert('You say grandmother, I say ' + Math.sqrt(-1));
/*
var x;
var Q =  new Object( {x:3} );

if (typeof(x) === 'undefined'){
    alert('holy shit');
}
if ("x" in this)
{
    alert('no shit sherlock');
}
if (this===window)
{
    alert('hadi shebak');
}
*/