javascript default parameter is set to object when setting null code example Example: variable defaults javascript es6 let variableToSet = checkedValue || defaultValue;