Posts

Showing posts with the label Javascript

Browser Rendering Process

Browser Rendering Process The browser rendering process is how a browser takes the HTML, CSS, and JavaScript of a webpage and turns it into pixels that we see on the screen. This involves multiple steps, including parsing , rendering , and handling updates like repaints, reflows, and composition. Let’s go through this process step by step in simple terms. Step 1: Parsing the HTML HTML Parsing: The browser reads the HTML code line by line and converts it into a structure called the DOM Tree (Document Object Model). Example: < div > < h1 > Hello </ h1 > < p > World </ p > </ div > The DOM Tree looks like: < html > < body > < div > < h1 >Hello</ h1 > < p >World</ p > </ div > </ body > </ html > CSS Parsing: The browser reads the CSS and creates a CSSOM Tree (CSS Object Model), which represents the styles applied to each element. Example: h1 { color : red; }...

JavaScript Must-Read Topics for Senior Developer Interviews

JavaScript Must-Read Topics for Senior Developer Interviews Core JavaScript Variables and Scoping ( var , let , const ) ✅ Hoisting✅ Closures✅ The Event Loop✅ Promises✅ and Async/Await✅ Callbacks✅ Prototype and Prototypal Inheritance✅ this Keyword and Binding✅ Execution Context and Call Stack✅ Error Handling ( try-catch , finally , custom errors)✅ ES6+ Features (Destructuring✅, Spread/Rest✅, Arrow Functions✅, etc.) Type Coercion and Type Checking ✅ == vs ===  ✅ Object-Oriented Programming in JavaScript (Classes, Constructors)✅ Functional Programming Concepts (Higher-Order Functions✅, Pure Functions✅, Immutability✅) Module Systems ( require , import/export , CommonJS, ESModules)✅ JavaScript Design Patterns (Singleton, Factory, Observer, etc.) Garbage Collection✅ Advanced Topics Currying✅ Memoization✅ Throttling and Debouncing✅ Event Bubbling , Event Capturing and Event Delegation✅ Shadow DOM and Web Components Iterators, Iterables and Generator✅ WeakMap and WeakSet✅ Proxy and...