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.

62 Easy HTML Frontend

Why is using div for everything a bad habit?

Short take Full answer on next page

Simple meaning

Divs have no meaning, so screen readers and outline tools cannot find nav, headings, or lists.

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

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

What is the difference between em and rem?

Short take Full answer on next page

Simple meaning

Em is relative to the parent font-size, so it compounds in nested components.

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

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

What is JSON.stringify used for?

Short take Full answer on next page

Simple meaning

It turns a JS value into a JSON string for APIs or localStorage.

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

Read full answer Example · Mistake · Say this
65 Easy DOM Frontend

What does event.preventDefault do?

Short take Full answer on next page

Simple meaning

It stops the browser's default action, like following a link or submitting a form.

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

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

What is useEffect used for at a basic level?

Short take Full answer on next page

Simple meaning

UseEffect runs after paint for side effects: fetch, subscriptions, and syncing to document title.

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

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

What is flex-grow versus flex-shrink?

Short take Full answer on next page

Simple meaning

Flex-grow is how leftover space is shared

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

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

Why might z-index seem to be ignored?

Short take Full answer on next page

Simple meaning

Z-index is compared only inside the same stacking context.

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

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

How would you mark up an accessible dropdown?

Short take Full answer on next page

Simple meaning

I start with a button that has aria-expanded and aria-controls pointing at the list.

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

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

How does prototypal inheritance work?

Short take Full answer on next page

Simple meaning

Objects have an internal prototype link used when a property is missing.

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

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