Temporal Dead Zone (TDZ) in JavaScript

Temporal Dead Zone (TDZ) in JavaScript Definition: The Temporal Dead Zone (TDZ) is the time between a variable being hoisted (declared in memory) and when it is actually initialized. During this phase, accessing the variable results in a ReferenceError. TDZ applies to variables declared using let and const. In simpler terms, even though let and […]

person shubham sharmaaccess_time October 30, 2025launch Read More

Var, Let, and Const in JavaScript

Var, Let, and Const in JavaScript Definition: In JavaScript, var, let, and const are used to declare variables, but they differ in scope, hoisting behavior, and reassignment rules. Understanding these differences helps you write cleaner and more predictable code. 1. var — The Old Way The var keyword has been part of JavaScript since the […]

person shubham sharmaaccess_time October 30, 2025launch Read More

Hoisting in JavaScript

Hoisting in JavaScript Definition: Hoisting is JavaScript’s default behavior of moving declarations (not initializations) to the top of their scope — either the global scope or the function scope. This allows variables and functions to be used before they are formally declared in the code. In simple terms, during the compilation phase, JavaScript scans your […]

person shubham sharmaaccess_time October 30, 2025launch Read More

JavaScript key questions

Hoisting in JavaScript Definition: JavaScript moves variable and function declarations to the top of their scope during compilation — this is called hoisting.

Note: Variables declared with let and const are not accessible before initialization (Temporal Dead Zone). Var, Let, and Const Summary: These keywords define variables, but differ in scope and re-assignment rules. […]

person shubham sharmaaccess_time October 16, 2024launch Read More

JavaScript The Event Loop

JavaScript is single threaded. so it needs event loop to run asynchronous (Multi Thread) code. JavaScript first runs synchronous code, then it queue asynchronous code to call later. Asynchronous code is called/executed by event loop. System/Browser takes synchronous code and put them as tasks. then these tasks are put them into queue. The Event Loop […]

person shubham sharmaaccess_time March 26, 2022launch Read More

React-Native key questions

DOM, Shadow Dom, Virtual DOM State and props What is StyleSheet.create()? StyleSheet.create() is a function that takes a plain JavaScript object and returns a StyleSheet object. Instead of creating a new style object every time, StyleSheet helps to create style objects with an ID which is further used to reference instead rendering it again. How […]

person shubham sharmaaccess_time February 6, 2022launch Read More

Short div(Element) by jQuery

 

person shubham sharmaaccess_time November 18, 2017launch Read More

jQuery: Select to JSON

 

person shubham sharmaaccess_time September 29, 2017launch Read More

Add/Remove Input Fields Dynamically with jQuery

If you are looking to add and remove duplicate input fields, here’s another jQuery example below to do the task for you. This jQuery snippet adds duplicate input fields dynamically and stops when it reaches maximum. If you read comment lines carefully, the process is pretty straight forward. We start with 1 input field and […]

person shubham sharmaaccess_time June 15, 2017launch Read More