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
101 Moderate Redux Frontend

How does Redux data flow work?

Short take Full answer on next page

Simple meaning

The UI dispatches an action object.

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

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

What is a reducer and why must it be pure?

Short take Full answer on next page

Simple meaning

A reducer is a function of previous state and action that returns the next state.

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

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

What is Redux Toolkit versus classic Redux?

Short take Full answer on next page

Simple meaning

Classic Redux needed hand-written action types, switch statements, and spread copies.

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

Read full answer Example · Mistake · Say this
104 Moderate TypeScript Frontend

When would you pick interface over type?

Short take Full answer on next page

Simple meaning

I pick interface for object shapes that might be extended or merged in declaration files.

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

Read full answer Example · Mistake · Say this
105 Moderate TypeScript Frontend

How do you type a React component's props?

Short take Full answer on next page

Simple meaning

I define a Props interface and annotate the function parameter.

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

Read full answer Example · Mistake · Say this
106 Moderate TypeScript Frontend

What is unknown versus any?

Short take Full answer on next page

Simple meaning

Any turns off checking, so I can access any property and hide bugs.

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

Read full answer Example · Mistake · Say this
107 Moderate TypeScript Frontend

How do union types help with API response states?

Short take Full answer on next page

Simple meaning

I model idle, loading, success with data, and error with a message as a discriminated union.

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

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

How would you reduce LCP on a landing page?

Short take Full answer on next page

Simple meaning

I preload or prioritize the hero image, set explicit dimensions, and avoid lazy-loading that above-the-fold asset.

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

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

What causes layout shift and how do you prevent CLS?

Short take Full answer on next page

Simple meaning

Media without reserved space, webfonts swapping late, and inserting UI above existing content.

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

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

How does code splitting work with React.lazy?

Short take Full answer on next page

Simple meaning

React.lazy plus dynamic import creates a separate chunk loaded when the component first renders.

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

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

What is tree shaking?

Short take Full answer on next page

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
112 Moderate Testing Frontend

How do you test a form with React Testing Library?

Short take Full answer on next page

Simple meaning

I render the form, find fields by label text, type with userEvent, and click the submit button by role.

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

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

How can innerHTML cause XSS?

Short take Full answer on next page

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

How do SameSite and HttpOnly cookies help?

Short take Full answer on next page

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

What is a hydration mismatch?

Short take Full answer on next page

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
Prev Page 6 of 12 Next
Chat with us