It is mostly used (but not only) as the client-side scripting language for web browsers.
JavaScript is a scripting language. It is mostly used (but not only) as the client-side scripting language for web browsers. JS code was originally developed as a front-end language to provide browsers with dynamic content that couldn’t be written with just HTML and CSS.