3 ms·
> Any non-trivial code work is done in JavaScript, anyway. JavaScript is strongly-typed though, it just lacks a way to declare types. One can easily restrict t
by DaiPlusPlus 6y ago
> Any non-trivial code work is done in JavaScript, anyway.
JavaScript is strongly-typed though, it just lacks a way to declare types. One can easily restrict types in script code (using `typeof` for primitives and `instanceof` for object prototypes).
People refer to it as "weakly-typed" because most (but not all) of the built-in types have implicit conversions to other types; and many of which are non-obvious: https://github.com/denysdovhan/wtfjs https://github.com/denysdovhan/wtfjs