DEV Community

Davyd McColl
Davyd McColl

Posted on

I can't say "this sucks" about Javascript...

because I have no idea what "this" is.

Latest comments (4)

Collapse
 
tmthyrd profile image
Timothy Reid

I try not to get in a bind about it

Collapse
 
fluffynuts profile image
Davyd McColl

I'll try to call you out on that if you don't apply it...

Collapse
 
adrianhelvik profile image
Adrian

Quick fix:

Object.defineProperty(
  Object.prototype,
  'sucks',
  {
    value: 'Does it?',
    enumerable: false
  }
)
Collapse
 
fluffynuts profile image
Davyd McColl

😂