Code QuizAdvanced

Building Template Literal Types

Template literal types embed other types using backticks and dollar-brace interpolation.

Codetypescript
type Event = "click" | "hover";

type Handler = "on" + Capitalize<Event>;

// want: 'onClick' | 'onHover'

What is the bug in this template literal type?