Can someone explain TypeScript to me like I'm 5 years old?
00:03 AM - 07 May 2020
279
1625
Thomas Irizarry
@tommytomtj
@elyktrix If you say 'orange' TypeScript will ask if you mean the fruit or the color, JavaScript won't ask and you might end up drinking a glass of orange paint instead of orange juice.
@elyktrix JavaScript is like “go play outside”. Typescript is like “you can’t play outside until you clean your room”.
03:48 AM - 07 May 2020
21
220
Quarterstack developer
@ocramius
@elyktrix@Jan0707 Like driving a train, except that in JavaScript you are off-road, and in TypeScript you have rails.
10:21 AM - 07 May 2020
5
73
Amilcar Calles
@amilcarcalles
@elyktrix I will say to my son: typescript is like when we study math together at home, I’m there to help you if you make some mistake (I’m TypeScript), JavaScript well, JavaScript is your final exam, you complete the writing, then you wait the result without knowing if something was wrong
Top comments (2)
To 5yo:
TypeScript tells JavaScript what it should take in order to get it needs.
number
😉
I also have a recent post on how to get started easily:
Starting with TypeScript
Atila Fassina ・ May 17 ・ 4 min read
And a playlist on youtube with Simplified TypeScript byte-sized tuts
🔥Suggestions for the next videos?