Tell us what’s happening:
I can’t get this challenge to test for me.
I have used multiple computers, and multiple browsers.
In addition: Use the Rest Operator with Function Parameters
will not test for me as well.
Again have used multiple computers, and multiple browsers.
The challenge: Use the Spread Operator to Evaluate Arrays In-Place
worked fine for me.
Thanks for your consideration.
Your code so far
const increment = (function(number, value = 1) {
"use strict";
return function increment(number, value) {
return number + value;
};
})();
console.log(increment(5, 2)); // returns 7
console.log(increment(5)); // returns NaN
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions