What goes in the blank?
// returns the value, or "default" if value is falsy
function withDefault(value) {
return value ____ "default";
}
Answer: ||
|| returns the right side when the left is falsy.
Play Problem Solving ▸
// returns the value, or "default" if value is falsy
function withDefault(value) {
return value ____ "default";
}
Answer: ||