Type Annotations
Type annotations in TypeScript come after the variable name's declaration using the colon syntax (:
). The TypeScript compiler features sophisticated type inference, making many annotations optional while still providing type safety.