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.

22 Easy DOM Frontend

What is event bubbling?

Short take Full answer on next page

Simple meaning

After a handler on the target runs, the event travels up through parents to document.

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

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

What is a Promise in JavaScript?

Short take Full answer on next page

Simple meaning

A Promise represents a value that will arrive later: pending, then fulfilled or rejected.

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

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

What is debounce and where do you use it?

Short take Full answer on next page

Simple meaning

Debounce waits until the user stops firing an event for N milliseconds, then runs once.

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

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

What is throttle compared to debounce?

Short take Full answer on next page

Simple meaning

Throttle runs at most once per interval while the event keeps firing, like scroll or mousemove.

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

Read full answer Example · Mistake · Say this
27 Easy Browser Frontend

What is CORS and why do API calls fail in the browser?

Short take Full answer on next page

Simple meaning

Browsers block a page on one origin from reading responses from another origin unless the server sends Access-Control-Allow-Origin.

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

Read full answer Example · Mistake · Say this
28 Easy Browser Frontend

When would you use localStorage versus cookies?

Short take Full answer on next page

Simple meaning

LocalStorage is for non-sensitive UI preferences, larger, and never sent automatically with requests.

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

Read full answer Example · Mistake · Say this
29 Easy Browser Frontend

What is sessionStorage used for?

Short take Full answer on next page

Simple meaning

SessionStorage is like localStorage but tied to the tab and cleared when that tab closes.

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

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

What is the virtual DOM?

Short take Full answer on next page

Simple meaning

It is React's in-memory description of the UI as a tree of elements.

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

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

Why do list items need a key prop?

Short take Full answer on next page

Simple meaning

Keys tell React which item is which across renders so it can reuse DOM and state.

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

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

What is a controlled input in React?

Short take Full answer on next page

Simple meaning

The input value comes from state and onChange updates that state, so React is the source of truth.

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

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

What does useState do?

Short take Full answer on next page

Simple meaning

It stores a value for this component and queues a re-render when you call the setter.

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

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

What is JSX?

Short take Full answer on next page

Simple meaning

JSX is HTML-like syntax that compiles to React.createElement or the new jsx runtime.

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

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

What are props in React?

Short take Full answer on next page

Simple meaning

Props are inputs passed from parent to child and should be treated as read-only.

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

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

What is React Context used for?

Short take Full answer on next page

Simple meaning

Context avoids threading the same prop through many layers, like theme or the current user.

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

Read full answer Example · Mistake · Say this
37 Easy Redux Frontend

What problem does Redux solve?

Short take Full answer on next page

Simple meaning

Redux puts shared client state in one store with a strict update path: dispatch an action, reducer returns new state.

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

Read full answer Example · Mistake · Say this
38 Easy TypeScript Frontend

Why use TypeScript on a frontend project?

Short take Full answer on next page

Simple meaning

It catches wrong props, missing fields, and typo-level bugs before the browser.

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

Read full answer Example · Mistake · Say this
40 Easy TypeScript Frontend

What is a union type?

Short take Full answer on next page

Simple meaning

A union means a value can be one of several types, like string or number, or loading or success or error.

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

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