Skip to content

Latest commit

 

History

History
60 lines (52 loc) · 3.5 KB

javascript.md

File metadata and controls

60 lines (52 loc) · 3.5 KB

#JavaScript

What are possible variable scopes?

  • Local scope
  • Global scope
Relative links:

What is bind? call & apply?

call()/apply() to invoke the function immediately. bind() returns a bound function that, when executed later, will have the correct context ("this") for calling the original function. So bind() can be used when the function needs to be called later in certain events when it's useful.

Relative links:

What is losing of context in js?