TypeScript | Type Annotation and Inference in TypeScript | Question1

Last Updated :
Discuss
Comments

What is Type Annotation in TypeScript?

A way to assign a default value to a variable

A method to explicitly declare the type of a variable

A feature that automatically assigns types to variables

A way to convert one type into another

Share your thoughts in the comments