how to define default value in a method code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;