es6 default values code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;