FlashcardBeginner

Type Annotations Syntax

Type annotations declare a variable's type using a colon after its name.

Question

How do you write a type annotation in TypeScript?

Click to reveal answer