Q1. How does js work?
Ans: JavaScript is a text-based programming language used both on the client-side and server-side. Its allows you to make web pages interactive. HTML and CSS are only use for making the website markup. On the other hand, JavaScript gives web pages interactive elements that engage a user. Javascript language source code is actually compiled. In the true sense of the word, in modern browsers.