ES6 - Set Default Parameters

ES6 - Set Default Parameters
0.0 0


In the code, it says

console.log(increment(5)); // returns NaN

but in the tests, it says

The result of increment(5) should be 6.

Please tell me this is an error, and I’m not just losing my mind.


Nah ^^
The actual code returns NaN, but it must return 6 after your changes^^


Thank you. Maybe in the old version of FCC, the statements written at the bottom of the code said what it SHOULD result in as well as the tests? Thank you for the clarification.