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
41 Moderate Performance Frontend

What is tree shaking?

Short take

Simple meaning

Bundlers drop unused ES module exports when they can prove they are unused.

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

Read full answer Example · Mistake · Say this
46 Moderate Security Frontend

How can innerHTML cause XSS?

Short take

Simple meaning

If you assign a string that contains a script or an onerror handler from the user, the browser will execute it.

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

Read full answer Example · Mistake · Say this
47 Moderate Security Frontend

How do SameSite and HttpOnly cookies help?

Short take

Simple meaning

HttpOnly stops document.cookie from reading the session, which reduces XSS token theft.

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

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

What is a hydration mismatch?

Short take

Simple meaning

The HTML from the server does not equal what React renders on the client for the first pass.

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

Read full answer Example · Mistake · Say this
51 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
52 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
55 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
58 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
59 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
60 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
Prev Page 3 of 5 Next
Chat with us