3 ms·
Nonsense. If I need to keep using === because the type might actually be something different at runtime, it doesn't have static types.
by patrick451 2y ago
Nonsense.
If I need to keep using === because the type might actually be something different at runtime, it doesn't have static types.
- smt88 2y agoIt has static types because the compiler won't let you change a variable's type. It's exactly as statically typed as C#. Both allow explicitly-declared dynamic variables, but they're disabled by default. === is incidental syntax required to maintain the goal of being a superset of JS.