Code QuizIntermediate

Working with Two Type Parameters

Catch the tuple that returns its elements in the wrong order.

Codetypescript
function pair<T, U>(a: T, b: U): [T, U] {
  return [b, a];
}

const p = pair("id", 42);

What is the bug in this multi-parameter generic function?