JavaScript is a dynamic programming language that's used for web development, in web applications, for game development, and lots more. It allows you to implement dynamic features on web pages that cannot be done with only HTML and CSS.
I had this question when I got started with React probably a year ago, but I clearly remember finding it annoying and confusing how index.js contacts index.html for id references. if you have ever used react, I'm assuming you have because why not it'...