Are there “bad” parts with JS? Yea totally, but does that make it a 100% bad, don’t use, never touch it, your better off not ever learning it language? Heck no
Historically, the language was made more as an after thought for the web.
Because of this you get odd behaviors that “don’t age well” and create a more or less hacked together language over time. Newer JS code is vastly different than older and classic JS code, resulting in a very deep, complex language with lots of ways todo the same thing. This gives JS lots of flexibility, as it more or less has more features and approaches than most languages, but it also keeps it from becoming “simpler” and there is more or less no way to design it from the ground up, Compared to a more well designed traditional language.