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.

81 Moderate JavaScript Frontend

What is the prototype chain?

Short take Full answer on next page

Simple meaning

It is the walk from an object to Object.prototype and then null while looking up a property.

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

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

How would you implement debounce in an interview?

Short take Full answer on next page

Simple meaning

I keep a timeout id, clear it on every call, and set a new timeout that fires the original function after wait ms.

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

Read full answer Example · Mistake · Say this
84 Moderate DOM Frontend

What is event delegation and why is it useful?

Short take Full answer on next page

Simple meaning

I put one listener on a parent and use event.target to see which child was clicked.

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

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

What is the temporal dead zone?

Short take Full answer on next page

Simple meaning

Let and const exist in the scope from the start of the block but cannot be read until the declaration line.

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

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

What is the Same-Origin Policy?

Short take Full answer on next page

Simple meaning

A page can freely read data only from the same scheme, host, and port.

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

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

How does React reconciliation work?

Short take Full answer on next page

Simple meaning

React compares the new element tree with the previous one by type and key.

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

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

What happens if you use the array index as a key?

Short take Full answer on next page

Simple meaning

Inserting or reordering makes React reuse the wrong component instance, so inputs keep the wrong text.

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

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

When does React.memo actually help?

Short take Full answer on next page

Simple meaning

It skips a re-render when props are shallow-equal.

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

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

When is Context a bad fit compared with Redux?

Short take Full answer on next page

Simple meaning

Context re-renders all consumers when the provider value changes, so putting a rapidly updating cart in a huge provider is costly.

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

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

What are the rules of hooks?

Short take Full answer on next page

Simple meaning

Only call hooks at the top level of a React function, not in loops or conditions, so the order stays stable.

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

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