In the Arrays test the test "you should be able to add the values of an array" has
So here fn(a) should return a number. But in the next test, "you should be able to remove an item from an array"
var result = fn(a);
Here it is assumed that the result should be an array and you're are expected to remove "2" from the array but that has to be hardcoded into "fn" as the value "2" is not known to "fn."
Is this part of the test and is just a curveball or is it a typo?
I agree, it seems it would be best for the function in the second test to receive 2 as an argument. I will update!
Looking at it again you keep running into the same problem. So now the first test and the 4th test contradict eachother.
Yes :) Each test should redefine fn to make the test pass.
Ahhhh ok. I was looking at it the wrong way. Trying to make the almighty "array" function. :)
[functions.js] Finished array arguments test (#1)