Generally, I'd say that the less strict the compiler/interpreter is, the worse code you'll end up with. In my experience, Python needs a lot of external checks (i.e. linting, static analysis) to help the programmer write code that actually work as intended (and JS probably is worse).
As John Carmack said:
"...if you have a large enough codebase, any class of error that is syntactically legal probably exists there."