Why Javascript?
As we all know that we can build beautiful websites using HTML and CSS. But the problem is such pages are static only which means users can just scroll up and down, click on the links. There's no interaction with the users.
Now we can make these static pages dynamic by adding a layer of interactivity with the help of Javascript.