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.

63 Moderate TypeScript Frontend

What is a generic in TypeScript at a practical level?

Short take Full answer on next page

Simple meaning

A generic is a type parameter so a function or component works with many shapes while keeping the relationship.

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

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

What is middleware in Redux used for?

Short take Full answer on next page

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
65 Moderate Next.js Frontend

What is a layout in the App Router?

Short take Full answer on next page

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
67 Moderate Accessibility Frontend

What is a skip to content link?

Short take Full answer on next page

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
68 Moderate Security Frontend

Why should you not store JWTs in localStorage?

Short take Full answer on next page

Simple meaning

Any XSS on the origin can read localStorage and send the token to an attacker.

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

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

How does grid-template-areas help readable layouts?

Short take Full answer on next page

Simple meaning

I name cells and draw the layout as ASCII in CSS, which is easier to review than long line and column numbers.

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

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

What is the difference between slice and splice?

Short take Full answer on next page

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
71 Moderate CSS Frontend

How do media queries help responsive design?

Short take Full answer on next page

Simple meaning

Media queries apply CSS only when the viewport or device matches a condition like max-width.

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

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

What is the event loop in JavaScript?

Short take Full answer on next page

Simple meaning

JavaScript runs on one call stack.

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

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

What is destructuring in JavaScript?

Short take Full answer on next page

Simple meaning

Destructuring pulls values from arrays or objects into named variables in one line.

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

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

What is the spread operator used for?

Short take Full answer on next page

Simple meaning

Spread copies array or object properties into a new literal.

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

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

What does useEffect cleanup do?

Short take Full answer on next page

Simple meaning

The function you return from useEffect runs before the next effect and on unmount.

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

Read full answer Example · Mistake · Say this
77 Moderate Performance Frontend

What is code splitting in a SPA?

Short take Full answer on next page

Simple meaning

Loading route or feature bundles on demand.

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

Read full answer Example · Mistake · Say this
78 Moderate Browser Frontend

What is the Critical Rendering Path?

Short take Full answer on next page

Simple meaning

It is the browser steps from HTML and CSS to first painted pixels: parse DOM, parse CSSOM, render tree, layout, paint.

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

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

What is a microtask versus a macrotask?

Short take Full answer on next page

Simple meaning

Promise callbacks are microtasks and run before the next macrotask like setTimeout.

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

Read full answer Example · Mistake · Say this
Prev Page 4 of 5 Next
Chat with us