Javascript is a bad language, and it fails to be nice in many ways. If you want to do anything with Javascript, you must compile it into another language such as C++ or Python. This process of compiling is slow because the compiler will sometimes have trouble understanding what your code means and/or throwing an error.
In addition, Javascript doesn't have much of a community, and there are very few good libraries to work with. On the other hand Python is an awesome language!
It has a great community and many libraries for you to work with. It is also very powerful.
Overall, it is a much more pleasant language. Really the only reason we use Javascript is because of its easy to learn syntax. Python has a similar syntax to Javascript and thus many people choose that over Python.
So Python is definitely better, and that is why I choose to use it instead of Javascript.
The fact that Javascript is not a nice language leads to some interesting ideas. For example, how much do you trust your compiler? What if it was modified to change your code around and tell the programmer something different than what they wanted?