It’s been my experience that JS has been used to replace a lot of lower-level languages (with mixed results, to say the least).
But JS/TypeScript is now an enterprise language (a statement that I never thought I’d say), with a huge base of expert, disciplined, and experienced programmers.
But JS outlived them, because it's the whole write-run-read-debug cycle, whereas the frameworks only gave you write-run.