Well and that JS is really fast thanks to V8 and TS has leapfrogged Ruby in terms of developer tooling. Personally I think Ruby is a nicer language and JS has a lot of odd quirks but it became Java. A good natural choice that can be used for any project.
Java is both significantly faster than JS and significantly less buggy/footgunny. JS is pretty much just a bad language in my mind. It seems specifically designed to create as many bugs as humanly possible. It's a lot like C++ in that way, but at least C++ is actually performant.