So JavaScript didn't work well and is successful?

To be fair I think the success of JS is in spite of it not working super well

JS was designed well. Got a lot of things right that others copied later, and also made improvements without breaking compatibility. And the random weird things like [] == 0 don't come up much in actual usage.

Well, JavaScript isn't a typed language, so the answer to your question can't even be "no".