2 ms·
I have heard that languages like javascript are weakly typed because of the effort they go through to evaluate an expression instead of throwing a type error.
by gugagore 8y ago
I have heard that languages like javascript are weakly typed because of the effort they go through to evaluate an expression instead of throwing a type error.
>> "5" - 3
< 2
It doesn't fit your example of a type error. Quite the opposite, the interpreter intentionally has code to do the specific thing for the specific types. But this feature is why javascript is "weakly typed" in many posts.