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.

41 Easy Accessibility Frontend

What does ARIA mean at a high level?

Short take Full answer on next page

Simple meaning

ARIA attributes tell assistive tech the role, name, and state of custom widgets when native HTML is not enough.

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

Read full answer Example · Mistake · Say this
42 Easy Accessibility Frontend

Why is keyboard navigation important?

Short take Full answer on next page

Simple meaning

Many users cannot use a mouse, including power users and people with motor disabilities.

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

Read full answer Example · Mistake · Say this
43 Easy Security Frontend

What is XSS in a frontend interview?

Short take Full answer on next page

Simple meaning

Cross-site scripting is when attacker HTML or JavaScript runs in your users' browsers, usually through unsanitized output.

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

Read full answer Example · Mistake · Say this
44 Easy Security Frontend

What is CSRF in simple terms?

Short take Full answer on next page

Simple meaning

Cross-site request forgery tricks the browser into sending the user's cookies to your API from another site.

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

Read full answer Example · Mistake · Say this
45 Easy Performance Frontend

What is LCP?

Short take Full answer on next page

Simple meaning

Largest Contentful Paint is when the biggest above-the-fold image or text block appears.

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

Read full answer Example · Mistake · Say this
46 Easy Performance Frontend

What is CLS?

Short take Full answer on next page

Simple meaning

Cumulative Layout Shift measures how much the page jumps while loading.

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

Read full answer Example · Mistake · Say this
47 Easy Performance Frontend

What is code splitting?

Short take Full answer on next page

Simple meaning

Code splitting breaks the JS bundle so the first paint only downloads the route the user opened.

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

Read full answer Example · Mistake · Say this
48 Easy Testing Frontend

What is Jest used for?

Short take Full answer on next page

Simple meaning

Jest is a JavaScript test runner with assertions, mocks, and a watch mode.

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

Read full answer Example · Mistake · Say this
49 Easy Testing Frontend

What is React Testing Library testing for?

Short take Full answer on next page

Simple meaning

RTL tests the component the way a user would: find by role or label, click, type, and assert on the screen.

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

Read full answer Example · Mistake · Say this
50 Easy Next.js Frontend

What is Next.js compared with a plain React SPA?

Short take Full answer on next page

Simple meaning

Next.js is a React framework with routing, bundling, and ways to render on the server.

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

Read full answer Example · Mistake · Say this
51 Easy Next.js Frontend

What is SSR versus CSR?

Short take Full answer on next page

Simple meaning

CSR means the server sends JS and the browser builds HTML after download.

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

Read full answer Example · Mistake · Say this
52 Easy React Frontend

What is hydration in a React app?

Short take Full answer on next page

Simple meaning

Hydration is React attaching to server-rendered HTML instead of throwing it away and painting from scratch.

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

Read full answer Example · Mistake · Say this
53 Easy React Frontend

What is an error boundary?

Short take Full answer on next page

Simple meaning

An error boundary is a class component that catches render errors in its children and shows a fallback UI.

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

Read full answer Example · Mistake · Say this
54 Easy Web APIs Frontend

How does fetch work at a high level?

Short take Full answer on next page

Simple meaning

Fetch sends an HTTP request and returns a Promise for the Response.

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

Read full answer Example · Mistake · Say this
56 Easy CSS Frontend

What are media queries used for?

Short take Full answer on next page

Simple meaning

They apply CSS only when the viewport or device matches a condition, usually min-width.

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

Read full answer Example · Mistake · Say this
58 Easy JavaScript Frontend

What are truthy and falsy values?

Short take Full answer on next page

Simple meaning

Falsy values are false, 0, empty string, null, undefined, and NaN.

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

Read full answer Example · Mistake · Say this
59 Easy JavaScript Frontend

What does the spread operator do?

Short take Full answer on next page

Simple meaning

Spread copies enumerable properties into a new object or array, which we use to update state immutably.

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

Read full answer Example · Mistake · Say this
60 Easy React Frontend

What is lifting state up?

Short take Full answer on next page

Simple meaning

When two siblings need the same data, I move that state to the closest common parent and pass it down as props.

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

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