Typescript is way more than just types tho... It's interfaces, encapsulation, enums, tuples, etc, etc. It literally changes everything regarding app architecture and code "shape"... Oc one can just use one of the features and forget about the others but just using static typing can be worked around using strict JavaScript and linter anyway...
It's still the same syntax, the same way to define variables, functions, for loops... You have access to the same built-in functions and objects like Math.random(). So saying the syntax looks weird seems a little weird to me. Interfaces and enums you dont have to use, they're just there to aid in making good typings. Tuples you definitely have in javascript: const myTuple = ['one', 1] is valid javascript code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Typescript is way more than just types tho... It's interfaces, encapsulation, enums, tuples, etc, etc. It literally changes everything regarding app architecture and code "shape"... Oc one can just use one of the features and forget about the others but just using static typing can be worked around using strict JavaScript and linter anyway...
It's still the same syntax, the same way to define variables, functions, for loops... You have access to the same built-in functions and objects like
Math.random()
. So saying the syntax looks weird seems a little weird to me. Interfaces and enums you dont have to use, they're just there to aid in making good typings. Tuples you definitely have in javascript:const myTuple = ['one', 1]
is valid javascript code.