Bare words JavaScript |
with(bareWords) {
alert( + )
console.log(We, can, use, bare, words)
}
.try {
let self = this
window.bareWords = new Proxy({}, {
has: function(target, name) {
return !(name in self)
},
get: function(target, name) {
return name
},
})
} catch(e) {
console.error('Your browser doesn't support bare words.')
}
, , , Proxy with.