how to add default in function doc javascript code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;