The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Understanding function bind() in JavaScript

Understanding function bind() in JavaScript

3:03
Changing context in JavaScript is only possible using call() and apply(). The bind() method on the function prototype use those methods to allow us to quickly change the context in which a function is executed in. Learn how bind works by recreating it.
Watch this lesson now
Avatar
egghead.io

Changing context in JavaScript is only possible using call() and apply(). The bind() method on the function prototype use those methods to allow us to quickly change the context in which a function is executed in. Learn how bind works by recreating it.

Avatar
Sumit

Hi,

In the code snippet shown in the video you have divided arguments into two arrays, innerArgs and outerArgs can you please explain it a bit further

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?