javascript call function with specified optional arguments code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;