how to add a default parameters when a function is called code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;