3 ms·
I agree that everyone should use Typescript but knowing what Typescript adds to Javascript doesn't help you with anything. You have to know Javascript first; b
by jrockway 8y ago
I agree that everyone should use Typescript but knowing what Typescript adds to Javascript doesn't help you with anything. You have to know Javascript first; because that's what the bulk of your code is. Typescript merely adds some annotations and all of its syntax strictly deals with types.
Your statement kind of sounds like "don't learn C, learn how to run gcc from the command line". Important but orthogonal.
- lkschubert8 8y agoI think people miss the point that it is just a compilation check, but the runtime is still completely dynamic. If you are writing typescript that interacts with anything else in the world the types make no guarantees at runtime so it is important to know how Vanilla JS would behave in that circumstance.