
How React Virtual DOM works under the hood
What problem does the virtual DOM solves? To understand the use of react, we first how native browsers like firefox, chrome etc. render raw HTML,CSS and JavaScript. Browser renders them using the foll

In today's digital age, interactivity is key to engaging users on websites. One of the most powerful ways to make a webpage come alive is through event handling. Event handling allows websites to respond to user actions like clicks, typing, mouse mov...

The Document Object Model, or DOM for short, represents all page content as objects that can be modified.The document object is the main “entry point” to the page. We can change or create anything on the page using it. Now, the question may arise how...

What is a class? Classes are a template for creating objects. They encapsulate data with code to work on that data. Just like functions can be defined using two ways classes can be defined by class declaration and class expression. // class declarati...

What is Prototype? Prototypes are the mechanism by which JavaScript objects inherit features from one another.In JavaScript, objects can inherit features from one another via prototypes. Every object has its own property called a prototype. Because t...

What is a polyfill and why is it important? Polyfill is a way to modify or add new functions. It is basically a piece of code to add/modify the new functions. It is used to provide modern functionality to web browsers. It is basically a piece of code...

What are functions? Functions are the basic building blocks of any programming language. They allows us to call the same code any number of times thereby preventing repetition. Prompt(), alert() all of these are in-built functions of JavaScript. How ...