console log with default value and variable in javascript code example Example: javascript default parameters function multiply(a, b = 1) { return a * b; }