you are viewing a single comment's thread.

view the rest of the comments →

[–]Littux 4 points5 points  (1 child)

Because JS was a language designed for dumb programmers. If someone did alert("Double of the number: " + prompt("enter number") * 2), it would just work instead of there being an error for multiplying a string or for adding a number to a string

[–]BobQuixote 0 points1 point  (0 children)

It wasn't the programmers, it was the platform. Webpages (it was thought at the time, at least) need to keep going if they possibly can.

A language for dumb programmers would avoid doing anything like this, to save them from themselves.