$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #104

What goes in the blank?

// returns the value, or "default" if value is falsy
function withDefault(value) {
  return value ____ "default";
}

Answer: || (also accepted: ||)

|| returns the right side when the left is falsy.
Play Problem Solving ▸