Explore Library
Code QuizBeginner

Passing Wrong Argument Type

A number is passed where the function parameter expects a string.

Codetypescript
function greet(name: string): string {
  return "Hello " + name;
}

const message = greet(42);

What is the bug in this call?