Code QuizBeginner

Function Parameter Type Annotations

Spot the syntax error in typing a function's parameters.

Codetypescript
function greet(name: string, age number): string {
  return `${name} is ${age} years old`;
}

console.log(greet("Ada", 36));

What is the bug in this code?