Q361. How do you create API endpoints in Next.js?
Next.js provides built-in serverless backend capabilities for creating REST or GraphQL endpoints: ### 1. In App Router (Route Handlers - Modern): Create a `route.ts` (or ...
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 (1,236 available).
Next.js provides built-in serverless backend capabilities for creating REST or GraphQL endpoints: ### 1. In App Router (Route Handlers - Modern): Create a `route.ts` (or ...
No, if you provide values for ALL columns in the exact table order. But **best practice**: always specify columns. It prevents errors when schema changes and is self-docu...
Relative positioning moves an element relative to its current position without affecting the position of other elements, while absolute positioning positions an element r...
You can use `React.version` to get the version. ```jsx harmony const REACT_VERSION = React.version; ReactDOM.render( {`React version: ${REACT_VERSION}`}, document.getElem...
To insert a new record into the `Customers` table, specify the column names followed by the `VALUES` clause: ```sql INSERT INTO Customers (id, first_name, last_name, emai...
JavaScript’s "use strict" directive is used to opt into a stricter parsing and error-handling mode for your scripts or functions. It helps catch common bugs, makes your c...
Add a listener on the `history` object to record each page view: ```javascript history.listen(function (location) { window.ga("set", "page", location.pathname + location....
To insert a row populating only the `LastName` column: ```sql INSERT INTO Customers (LastName) VALUES ('Hawkins'); ``` *Prerequisite:* This statement succeeds only if all...
The CSS clear property controls whether an element is allowed to float next to another element or not. The possible values include left, right, both, and none. When an el...
Strict mode is useful to write "secure" JavaScript by notifying "bad syntax" into real errors. For example, it eliminates accidentally creating a global variable by throw...
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.