defaults object in node js code example Example: ES6: Set Default Parameters for Your Functions const increment = (number, value = 1) => number + value;