JavaScript is a mess of a language in general. But even if that was not true, it is definitely not designed for numerical computation, nor symbolic manipulation, nor high performance, nor reliability.
Going from Python to JavaScript is a step backwards, not forward.
Going from Python to JavaScript is a step backwards, not forward.