Advantages of JavaScript are as follows:
1. It is relatively easy to learn and use.
2. It can be used for client-side and server-side i.e. front end and back end.
3. It provides dynamism and interactivity on websites.
4. It runs on multiple platforms and devices. It is supported by all browsers.
5. There are many libraries, frameworks, and APIs available to facilitate tasks.
6. It can create visually appealing web projects and create drag & drop components like sliders etc. to make the website more professional.