DEV Community

Discussion on: Simple Rules to Master 'this' Context

Collapse
 
ericlifs profile image
Eric Lifs

Hi Idress! The rules are in the wrong order, actually it should be:

  1. new keyword
  2. bind (hard binding) // call or apply (explicit binding)
  3. dot call operator (implicit binding)
  4. global or undefined (default object)
Collapse
 
dotnetdreamer profile image
Idrees Khan

Thanks for the correction 😅