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

Fill the blank

// returns a greeting using the provided name, default "friend"
function greet(name: string ____ "friend"): string {
  return "Hi " + name;
}

Answer: = (also accepted: =)

Default parameter values are assigned with =.
Play Problem Solving ▸