I disagree with this commonly held sentiment. For example I found Java to have a real lack of information when running into problems, and the only docs for libraries were some god awful generated ones. Recently after using Prisma (the worlds best ORM UX) I found Go and Rust’s most popular ORMs to be a drop of piss by comparison. And take websites like NextJS, Prisma, Apollo, MDN - JS websites are light years ahead compared to other languages in their documentation.
Yes one of the reasons NPM has so many poorly maintained packages is that it’s so easy to publish them, and JS is so popular. But that doesn’t mean that for each thing you need you can’t find one that is much better presented and maintained than in other languages.