JSFiddle - React, Tailwind, and code Playground
by podlipensky
JavaScript
Object.prototype['x'] = 5;
var x = 10;
function foo(){
var bar = {
y: 15
};
with(bar){
return x;
}
};
document.write(foo());
by podlipensky
Object.prototype['x'] = 5;
var x = 10;
function foo(){
var bar = {
y: 15
};
with(bar){
return x;
}
};
document.write(foo());