andreax

joined 1 year ago
[โ€“] [email protected] 3 points 10 months ago

Your answer and mine are complementary, they definitely complete each other! Well done!

[โ€“] [email protected] 5 points 10 months ago (4 children)

No, it is slower than JS but it can be compiled to JS. The point of typescript is bringing static (or generally talking, predictable) types to variables, so that treating erroneously a number as a string should be more difficult. In a large codebase, it's easy to make mistakes and debugging is not instantaneous but it needs time. Typescript helps here. You write more code but it helps you out later