Set Default Parameters for Your Functions - validation does not occur

Tell us what’s happening:
Validation does not occur when I click “Run Tests”

Your code so far


const increment = (function(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 (Macintosh; Intel Mac OS X 10.13; 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

The tests are running. They are failing. Your solution is not correct.

You don’t need to pass in another parameter at the beginning of your function. Just do the same thing to value parameter when another increment function is returned.

Damn. You are right. My bad! Thanks!