1. Easy to learn
2. Runs on all major browsers
Since its inception in 1995, it has been supported by all major browsers including Internet Explorer, Firefox, Chrome, and Safari making it possible for developers to create cross-browser compatible websites easily without having to resort to Flash or Silverlight technologies.
3. Rich interfaces
4. Increased interactivity
5. Server loads are reduced
6. Community support
There is a large community of developers who are willing to share their time and knowledge with newbies just starting out in programming; this makes learning JS much easier than if you were trying to tackle something like C++ by yourself.
You can use it on both the client-side and the server-side of an application, and it can connect your website to databases and APIs.
It is beginner-friendly because of its forgiving nature. If you make a mistake in your code, it won’t break your entire page or program; it will simply point out the error so you know where to fix it.
10. It is ubiquitous
It can be used for almost anything these days, from building websites and apps all the way down to controlling robots. So there are tons of opportunities if you are interested in getting hired as a developer or working on interesting projects at home.
11. Runs everywhere
1. Security issues
2. Single inheritance
3. Doesn’t support networking applications
4. Lack of debugging facility
If there is an error in your code, then the browser will simply ignore all the code after that line that caused an error until further notice while debugging your code.
Recommended Reading: Advantages and Disadvantages of C Programming Language