Another class started today

It is a strange feeling when you go back and most people you know are already gone. I think a couple of my classmates started working today. Crazy.

Spent more time with Larry on how to achieve closure using bind. The simple solution is shown below:

var TakesArgs = function(d, e, f) {
  return (function(a, b, c){
    console.log('a: ', a);
    console.log('b: ', b);
    console.log('c: ', c);
  }).bind(window, d, e, f);
};

var TakesABC = TakesArgs('A', 'B', 'C');
TakesABC();
Advertisements
Standard