When a variable in a programming language being calls a strong type it simply means that the type of the variable cannot change afterword. For example, if a variable has been declared as a number or string then you just simply cannot switch the position of both of them at all after you have declared them once into your program.
In order to declare the type of variable in TypeScript, you will use the below lines:-
var hello : string = ' Hello Wolrd' var first : number = 1
After that you can print the outcome in the console as follows:-
console.log("I said " + first + hello); # I said 1 Hello Wolrd
Now suppose you have switched the types of the above variables again after the initial declarations then you will see the error appears on the VSCode editor as follows:-
hello = 1 # Type number is not assignable to type 'string' first = " Hello World" # Type string is not assignable to type 'number'
This means you cannot assign different types to a variable after you have assigned a certain type to that variable!. TypeScript is a strong type language as opposed to Javascript which is a weak type language!