Your knowledge about JavaScript is outdated as much as your parents knowledge about Java.
If you do not like dynamic typed languages: don't use them. Simple.
Otherwise JavaScript is utterly fine, and the de facto standard for full stack development.
Kewl insult. Do you have an explanation?...or are too lazy to justify your comment?
Also, your logic is stupid. I'm not authoring the goddamn page, I am just trying to buy a product or do some research or use an app. I have no choice in the tooling someone else uses.
Also, it's not the defacto standard for full stack development. That's wishful thinking on your part so you'll not have to open a book and learn another language. Java still has greater penetration among anyone who has a budget and knows what they're doing. At best, node.js replaced PHP, which was always the low-budget entry-level language. JavaScript is an absolute shit language for server-side unless you move to typescript...and even then...why bother? Java performs far better, has a larger community, more penetration, and is just a better platform. My hope was the AI revolution would lead to less Python and JavaScript where they don't belong. In the browser?...well, it's basically the only option. Node.js was just a means of making users suffer so UI professionals wouldn't have to learn a superior technology. Hopefully, they can just vibe-code some Java until they can afford to hire a real professional. With typescript?...OK, at least they addressed the reliability aspect....but yeah, you're adding the same amount of complexity as Java, only noticeably slower and less scalable and efficient.
And if you're like most professionals I've talked to, I'll anticipate you taking offense at my comment. I'll prematurely respond to what I anticipate your response to be: You may be AWESOME at writing node.js services and write perfect tests and create works of beauty. The problem is you'll be rewarded with a promotion and your app will get handed off to someone more junior.
I inherited one (I'm definitely junior at node.js), it imported a Google lib, which needed a security update to the latest version. They completely rewrote the signature of every function. That's shitty of Google...but it is what it is. If it were Java/C#/Rust/C++/Go? It would be a 1h task to fix. The compiler would catch every error. Not only would Java catch every error in my code I wrote, it would catch every signature error in every lib I imported very quickly, typically on startup. Node.js? Oh, it starts. It will only catch the simplest errors on request.
OK. So here I am with an app I don't understand because the original author rage quit. Her wiki is horribly out of date, just like every wiki page I've written...we're all guilty of that! So I have to guess the functionality. I know what everyone else knows. But had a nice multi-day trial and error of testing every function point to check for missed signatures. Turns out she wrote shit unit tests, which honestly...many devs do...so the builds passed. It ended up being a 2 week ordeal because a whole batch were caught in production, by users, because of some undocumented functionality that was added in later.
If it were typescript? I think it would have found it. If it was Java, I know it wouldn't have passed the build. When you're the only author? You can do whatever you want with whatever you want. If work for a larger employer and have real teams, you cannot rely on your talent alone. That's why dynamically and untyped languages are usually inferior choices for corporate development.
However, the core complaint is not about node.js....that's between you and your hosting-env/hyperscalar. My problem is MASSIVE complex websites that render simple static content, yet make 100s of REST calls to build a page in a real-time on my client...rather than just build the final page...save it somewhere. And to your point, it's not JavaScript's faults that there are idiots out there. However, the community certainly seems to be embracing and encouraging all sorts of complexity and frameworks.
Every front-end-dev I've talked to as well as the ones I work with daily will tell you that you need many modern frameworks in your work product in order to stay employable....specifically meaning if you write a simple HTML page with simple minimal JavaScript, the first guy who sees your page will tell your boss you're a clueless moron who doesn't know his way around React/Vue.js/Angular/Svelte...not that you do know your way and thought they were a fit for larger projects. So let's add 100 dependencies in your build and many frameworks....so people know you know what you're doing. So now the user has this slow page and gets to watch it rerender in real-time on his page...making it challenging to know when it's fully loaded and having links and buttons move around on him/her...I've many times accidentally clicked the wrong function on an app because it moved the buttons around in the time between when I position my mouse and click.
But to the OP's original, this is not about Java. This is fully about JavaScript...and more precisely, misuse by JavaScript. It's just a tool. It's the author's fault the page is a mess and horrible time to use.