TypeScript | Type Annotation and Inference in TypeScript | Question3

Last Updated :
Discuss
Comments

What will be the inferred type of the variable x in the following code?

TypeScript
let x = 10;


number

any

unknown

string

Share your thoughts in the comments