Pergunta de entrevista da empresa Lab49

Discuss how the this scope works in JavaScript.

Resposta da entrevista

Sigiloso

8 de dez. de 2014

When inside objects or DOM nodes it refers to the current instance. Otherwise, it refers to the global scope.

1