Introduction to Currying and Partial Application

Tell us what’s happening:

Your code so far


function add(x) {
  // Add your code below this line
  var fun = add.bind(this);
  return fun(x);
  // Add your code above this line
}
add(10)(20)(30);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/introduction-to-currying-and-partial-application

I have this solved without using bind, try it with 3 functions and 3 arguments. Also you have to return all functions you create.