Q41. What are the benefits of pure functions?
Some of the major benefits of pure functions are listed below, - **Easier testing:** Since output depends only on input, pure functions are simple to test. - **Predictabi...
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).
Some of the major benefits of pure functions are listed below, - **Easier testing:** Since output depends only on input, pure functions are simple to test. - **Predictabi...
A component for client side navigation between pages. ```jsx import Link from "next/link"; Home About ```
The `let` keyword in JavaScript is used to declare a **block-scoped local variable**. This means that variables declared with `let` are only accessible within the block, ...
The App Router supports a `metadata` export (or `metadata.js/ts`) to define route-level metadata like title, description, open graph tags and robots. You can export a sta...
You can list out the differences in a tabular format | var | let | | -------------------------------------------------------------- | ------------------------------------...
`generateStaticParams` is used in the App Router to statically generate dynamic routes at build time (SSG). Return an array of param objects for routes like `[slug]` so N...
The keyword `let` was chosen because it originates from mathematical notation, where "let" is used to introduce new variables (for example, "let x = 5"). This term was ad...
The `fetch` API in server components supports caching controls via `{ next: { revalidate } }` and cache modes like `cache: 'no-store'` or `cache: 'force-cache'`. Use `no-...
When you try to redeclare variables using `let` or `const` in multiple `case` clauses of a `switch` statement, you will get a SyntaxError. This happens because, in JavaSc...
Exporting `dynamic` controls how a route is rendered: `'force-dynamic'`, `'force-static'`, or `'auto'`. Use it to override Next.js detection — for example, force dynamic ...
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.