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

JavaScript
const increment = (number, value = 1) => number + value;
 
console.log(increment(5, 2)); // returns 7
console.log(increment(5)); // returns 6

Source

Also in JavaScript: