All practice tasks

Knowledge Check

Generic identity

Why does a generic identity function preserve more type information than one using any?

Answer options

  • A. It converts every input to a string
  • B. It disables inference
  • C. It creates a new module
  • D. Its return type stays linked to its input type

What this task practices

Generic identity is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Frontend Language Browser, Ts Generics Modules. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.