Q191. How do you detect caps lock key turned on or not?
The `mouseEvent getModifierState()` is used to return a boolean value that indicates whether the specified modifier key is activated or not. The modifiers such as CapsLoc...
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).
The `mouseEvent getModifierState()` is used to return a boolean value that indicates whether the specified modifier key is activated or not. The modifiers such as CapsLoc...
In the Next.js Pages Router, AMP was enabled on a per-page basis by exporting an `amp` configuration object: ### 1. Hybrid AMP Page: ```jsx // pages/article.js export con...
The isNaN() function is used to determine whether a value is an illegal number (Not-a-Number) or not. i.e, This function returns true if the value equates to NaN. Otherwi...
The **`next/image`** component is an extension of the HTML `` element engineered to automatically optimize images for Core Web Vitals: ### Automatic Optimizations Perform...
Below are the major differences between undeclared(not defined) and undefined variables, | undeclared | undefined | | ----------------------------------------------------...
The **`next/link`** component (``) is the primary way to perform **client-side transitions** between pages in Next.js applications: ### Why Use `` Instead of Standard ``?...
Global variables are those that are available throughout the length of the code without any scope. The var keyword is used to declare a local variable but if you omit it ...
In professional Next.js architecture, separating **`pages`** (or `app`) from **`components`** is fundamental to project organization: | Aspect | `pages/` (or `app/`) | `c...
The problem with global variables is the conflict of variable names of local and global scope. It is also difficult to debug and test the code that relies on global varia...
By placing them in the `public` directory, which is served at the root URL. ``` public/ ├── images/ │ └── logo.png └── favicon.ico ``` You can access these files using `/...
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.