Skip to content

Instantly share code, notes, and snippets.

View moiseh's full-sized avatar
🏠
Working from home

Moises Heberle moiseh

🏠
Working from home
  • Lajeado, Brazil
View GitHub Profile

Describe how the JavaScript built-in functions apply and call work. Use examples to demonstrate how each one works.

Setting The Context of a JavaScript Function

Category: Working with The JavaScript this Keyword.

apply and call methods were developed to give you more flexibility in your code avoiding writing duplicated functions. This reason per se is strong enough to read this article or any other on the subject.

Excuse me, can you lend me this function?