16. Asynchronous Javascript - Part 1 : setTimeout() , setInterval() , event loopFeb 9, 2025·2 min read
17. Asynchronous Javascript - Part 2 : CallBacks , Callback hell , Promises , async/awaitCallbacks A callback function is a function passed as an argument to another function and executed later. function fetchData(callback) { setTimeout(() => { console.log("Data fetched"); callback(); }, 2000); } function proc...Feb 9, 2025·4 min read
12. Document Object Model (DOM) in JavaScript – Complete GuideWhat is DOM ? » The Document Object Model (DOM) is a programming interface that represents the structure of an HTML or XML document as a tree-like hierarchy. » The DOM allows JavaScript to interact with and modify web pages dynamically. How does t...Feb 8, 2025·5 min read
11. Built-in Functions in JSString Built in Function MethodDescriptionExamples charAt(index)Returns the character at the specified index"Hello".charAt(1) → "e" concat(str1, str2, ...)Joins two or more strings"Hello".concat(" World") → "Hello World" includes(substring...Feb 8, 2025·4 min read
10. Call Stack , Lexical scoping, Closures in javascriptCall Stack The call stack is a data structure that keeps track of function calls in LIFO (Last In, First Out) order. How It Works? When a function is called, it's pushed onto the stack. When the function finishes execution, it's popped off the sta...Feb 8, 2025·3 min read
9. Functions- Arrow, IIFE , Callbacks in JavaScriptFunctions are reusable blocks of code that perform specific tasks Function Statement function hello(a){ console.log("Hello",a); // hello undefined } hello() /// function call we call function anywhere Function Parameters: Default and Rest(…a...Feb 7, 2025·3 min read
8. Operators in JavascriptOperators Operators are the special symbols that is used to perform some operation on oprends in an exporession Airthmatic operator used for basic mathematical operations. Examples: + , - , , / , % , ** Assignment operators used to assign values...Feb 7, 2025·2 min read
7. Conditional Statement and Exceptional Handling in JavascriptConditional Statement if-else statement: The if-else statement executes a block of code if a specified condition evaluates to true, otherwise, it executes another block of code. let num = 10; if (num > 0) { console.log("The number is positiv...Feb 7, 2025·3 min read