There can be a case when you are just declaring a variable but not initialising it with any value or u don’t have a value at that point of time for that variable then how TS will assign a type in that case. This can lead that variable being vulnerable and assigned value of any type later on thus leaving the fundamental principle of strict type checking.
So to solve this problem we have something in typescript called as explicit typing which means mentioning the type of the variable yourself. Now how can we do that.
Imagine I want to declare a variable let code which would be of type string but exact value is not yet available in the program then I can do that by.
let code : string
Now this will make sure that whenever we assign a value to the variable code it would allow values of type string only.
In a similar fashion u can do that for number like
Let age :number
And also for boolean like
Let isBoolean : boolean