Benefits of developing with JavaScript
Many different types of applications can be developed with it
- Web applications
- Modern browsers support it natively.
- Node.js can be used for server applications.
- Mobile applications with Cordova.
- Desktop applications with Electron.
A developed programming language
- Support for the most popular programming paradigms
- Object-oriented programming
- Functional programming
- A big ecosystem.
- Many packages, tools and libraries available via NPM and GitHub.
- Supported by many big companies.
- Very good documentation. MDN provides very good documentation.
Summary
When one chooses to focus on one programming language, JavaScript seems to be a good option in many cases. For machine learning, Python seems to be the best option.