JavaScript is a scripting or programming language and one of the core technologies of the web alongside HTML, which is a markup language and is used to create a structure of web page content as well as CSS, which is used to style that content. So JavaScript brings life to the front end or the user interface of a website or a web app. And it allows us to make web pages dynamic. Not only that but it can also be used on the server side to do things like interact with a database and work with the file system with the help of node js runtime. So javascript is a high-level interpreted programming language used to create an interactive and dynamic website experience and interpreted means, It is executed line by line rather than being compiled into machine code first.
Where It is used?
DOM (Document Object Model) manipulation.
Event Handling
A synchronous request
Animation & Effects
Data Manipulation(sorting, filtering etc.)
Storing Data (Cookies, Local storage etc.)
Single Page Application(SPA)
Creating APIs & web services(NodeJs)