I know it's considered bad practice here to solve homework, so I'm just asking for some direction, since I'm at a total loss. Here is the problem: Define a function add() that adds numbers in a functional manner. For example add(1)(1)(1)(1)(1) returns 5. Second example:
var addTwo = add(2);
console.log(addTwo); // 2
console.log(addTwo(3)); // 5