Liked posts

Reported posts

Bonus Q/A of JavaScript

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.

Q1. What does JS event loop do?

Ans: JavaScript has a runtime model. It is based on an event loop. It is doing such kind of task like executing the code, collecting and processing events, and executing queued sub-tasks. But mainly an event loop is often the main loop in a program that typically waits for the user to trigger something. During this case the Event Loop performs internal operations of any callbacks.