Javascript @3323333

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


// Only change code below this line
const increment = (number, value) => number + value;
// Only change code above this line

increment(5,2)
increment(5)
increment ()

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Challenge: Set Default Parameters for Your Functions

Link to the challenge:

Look at the instruction:

Modify the function increment by adding default parameters so that it will add 1 to number if value is not specified.

If value is not specified you should add one to number.
You have to give value a default value of 1

I don’t understand kindily give me an answer to what he says in question

You haven’t given any question.
In future post you can describe your question in the Tell us what’s happening: section.

What is your question?

ok sir thanks for replay

Please don’t make posts with no question and a gibberish title. Thanks

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.