Understanding function bind() in JavaScript

InstructorScott Moss

Share this video with your friends

Send Tweet

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.

Sumit
~ 8 years ago

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