What the heck is "this" Keyword in JavaScriptKey insights: Global Scope: In the global context, this refers to the global object (e.g., window). Function Context: Inside regular functions, this behaves differently in strict and non-strict modes, returning undefined or the global object. Meth...Nov 27, 2024 Β· 4 min readkeyurchaudhari.hashnode.dev
Async/Await in JavaScript: A Comprehensive GuideKey insights: Async Functions: The async keyword creates functions that always return a promise. Await: The await keyword pauses function execution until the promise is resolved. Error Handling: Use try/catch for error management in async function...Nov 23, 2024 Β· 3 min readkeyurchaudhari.hashnode.dev
Master CSS Specificity: A Comprehensive Guide for BeginnersTL;DR CSS specificity determines which styles are applied when there are conflicting rules. Itβs calculated based on the types of selectors used: inline styles (most specific), ID selectors, class/attribute selectors, and element selectors (least spe...Aug 24, 2024 Β· 5 min readkeyurchaudhari.hashnode.dev
Boost Your Website's SEO with Core Web VitalsTLDR Core Web Vitals are essential metrics for website performance and SEO. They include Cumulative Layout Shift (CLS), Largest Contentful Paint (LCP), and First Input Delay (FID). Tools like Google Chrome's Lighthouse can help improve these metrics....Aug 24, 2024 Β· 4 min readkeyurchaudhari.hashnode.dev
Understanding JavaScript's async and defer attributesIn this blog post, we explore the async and defer attributes in JavaScript, used with script tags to efficiently load external scripts onto a web page. We discuss three scenarios: using a script tag normally, with the async attribute, and with the de...Sep 14, 2023 Β· 3 min readkeyurchaudhari.hashnode.dev