November 2018
Beginner
502 pages
10h 22m
English
We have seen how type annotations are really valuable, but they involve a lot of extra typing. Luckily, TypeScript's powerful type inference system means we don't have to provide annotations all the time. We can use type inference when we immediately set a variable value.
Let's look at an example:
let flag = false;

So, when we declare a variable and ...
Read now
Unlock full access