Since the beginning of computer programming, there have been a lot of programming languages, like C, C++, Basic, Fortran, Pascal, Java, Python, etc.
There are many programming languages which are obsolete today, no one uses them. In 80s, we had C, 90s came with Java and in 2000s we first saw Python.
There are a number of reasons, JS is very popular
- Capability to code end to end in just one language.
- A vast number of very popular frameworks and libraries.