Q61. What is Hoisting?
Hoisting is JavaScript's default behavior where **variable and function declarations** are moved to the top of their scope before code execution. This means you can acces...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (780 available).
Hoisting is JavaScript's default behavior where **variable and function declarations** are moved to the top of their scope before code execution. This means you can acces...
The comments in React/JSX are similar to JavaScript Multiline comments but are wrapped in curly braces. **Single-line comments:** ```jsx harmony {/* Single-line comments(...
Next.js provides built-in, zero-configuration TypeScript support out of the box: ### 1. In a New Project: Pass the `--typescript` flag when bootstrapping: ```bash npx cre...
In ES6, JavaScript classes are primarily syntactic sugar over JavaScript’s existing prototype-based inheritance. For example, the prototype based inheritance written in f...
A feature to create API endpoints in the `pages/api` or `app/api` directory. It allow you to create custom request handlers for a given route using the Web Request and Re...
A closure is the combination of a function bundled(enclosed) together with its lexical environment within which that function was declared. i.e, It is an inner function t...
The **`public`** directory located at the root of a Next.js project serves static assets directly from the root domain path without going through Webpack or build bundlin...
Modules refer to small units of independent, reusable code and also act as the foundation of many JavaScript design patterns. Most of the JavaScript modules export an obj...
A feature to load components or modules dynamically. ```jsx const ComponentA = dynamic(() => import("../components/A")); const ComponentB = dynamic(() => import("../compo...
Before ECMAScript 2015 (ES6) introduced native modules (`import`/`export`), JavaScript ran in a single global scope (`window`), leading to variable name collisions, secur...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.