ES6 - Set Default Parameters

ES6 - Set Default Parameters
0.0 0

#1

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.


#2

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


#3

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.