DEV Community

Discussion on: JavaScript is not an untyped language

Collapse
 
lexlohr profile image
Alex Lohr

JavaScript has types, but instead of trying to make type safety a priority and throw TypeErrors every time when they don't add up (and not only if you try to use them in cases when they cannot be coerced), it aims for robustness. If you know the rules of type coercion, you can make them work for you.

Collapse
 
miguelmj profile image
MiguelMJ

Exactly. That's part of what I mean to say.
Thanks for your comment!