Code QuizIntermediate

Union Type Alias

Spot the wrong operator used to build a union type.

Codetypescript
type Id = string || number;

function printId(id: Id) {
  console.log(id);
}

What is the bug in this code?