Where can JavaScript be used

JavaScript is used in the browser. It can add interactivity by working together with the HTML and CSS.

With JavaScript we can modify CSS properties (eg change the color, or even the class of an element) and thus change the outcome that appears in the browser. 

JavaScript

In addition, much common these days, JavaScript is over on the server side as well.