Frontend track

HTML, CSS, JavaScript and React interview questions

Panel-ready Frontend Master questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

229 Qs
121 Moderate Web APIs Frontend

What is Intersection Observer used for?

Short take

Simple meaning

It tells you when an element enters the viewport without scroll listeners.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
122 Moderate Web APIs Frontend

What is the History API?

Short take

Simple meaning

PushState and replaceState change the URL without a full reload, which SPAs use for routing.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
125 Moderate JavaScript Frontend

What is optional chaining?

Short take

Simple meaning

The question mark dot stops the lookup and returns undefined if the left side is null or undefined.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
128 Moderate CSS Frontend

What are CSS custom properties?

Short take

Simple meaning

They are variables defined with a double-dash name, often on :root, and read with var.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
129 Moderate React Frontend

How does React batch state updates?

Short take

Simple meaning

React 18 batches setState in timeouts, promises, and native events so one event loop turn can become one render.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
130 Moderate JavaScript Frontend

What memory leak might you cause with addEventListener?

Short take

Simple meaning

If I add a window resize listener in useEffect and forget the cleanup, the handler keeps the component closure alive after unmount.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
134 Moderate Redux Frontend

What is middleware in Redux used for?

Short take

Simple meaning

Middleware wraps dispatch so I can log, crash-report, or run async.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
135 Moderate Next.js Frontend

What is a layout in the App Router?

Short take

Simple meaning

A layout wraps child routes and does not remount on navigation inside that segment, so shared chrome stays mounted.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
137 Moderate Accessibility Frontend

What is a skip to content link?

Short take

Simple meaning

It is the first focusable link that jumps to main content so keyboard users skip the nav.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
140 Moderate JavaScript Frontend

What is the difference between slice and splice?

Short take

Simple meaning

Slice returns a shallow copy of a portion and does not change the original, which is what I want in React.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 7 of 12 Next
Chat with us