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.

1 Easy CSS Frontend

What is the CSS box model?

Short take Full answer on next page

Simple meaning

The box model is how the browser sizes an element: content, then padding, then border, then margin outside.

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

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

Why do teams set box-sizing to border-box?

Short take Full answer on next page

Simple meaning

With content-box, padding and border sit on top of width so a 200px card can overflow its parent.

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

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

How is margin different from padding?

Short take Full answer on next page

Simple meaning

Padding is space inside the border, so the background still covers it.

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

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

What does display flex do?

Short take Full answer on next page

Simple meaning

Flexbox lays out children in a row or column and lets you align, wrap, and distribute leftover space.

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

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

When would you use CSS Grid instead of Flexbox?

Short take Full answer on next page

Simple meaning

Grid is for two-dimensional layouts where rows and columns must line up, like a dashboard or photo gallery.

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

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

How does z-index work?

Short take Full answer on next page

Simple meaning

Z-index only applies to positioned elements, or those with certain properties that create a stacking context.

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

Read full answer Example · Mistake · Say this
9 Easy HTML Frontend

What is semantic HTML and why does it matter?

Short take Full answer on next page

Simple meaning

Semantic tags like header, nav, main, and button describe meaning, not just boxes.

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

Read full answer Example · Mistake · Say this
11 Easy HTML Frontend

Why should images have an alt attribute?

Short take Full answer on next page

Simple meaning

Alt describes the image for screen readers and when the file fails to load.

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

Read full answer Example · Mistake · Say this
13 Easy HTML Frontend

What does the viewport meta tag do on mobile?

Short take Full answer on next page

Simple meaning

It tells the phone not to pretend the screen is a wide desktop and then zoom out.

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

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

What is a closure in JavaScript?

Short take Full answer on next page

Simple meaning

A closure is a function that remembers variables from the scope where it was created even after that outer function has returned.

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

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

What is hoisting in JavaScript?

Short take Full answer on next page

Simple meaning

Declarations are moved to the top of their scope during compile, so you can call a function declaration before its line.

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

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

What is the difference between == and ===?

Short take Full answer on next page

Simple meaning

Double equals coerces types, so 1 equals true and empty string equals false in some cases.

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

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

What is the difference between null and undefined?

Short take Full answer on next page

Simple meaning

Undefined means a variable was declared but never given a value, or a missing object property.

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

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

What is the DOM?

Short take Full answer on next page

Simple meaning

The DOM is the browser's tree of nodes built from HTML so JavaScript can read and update the page.

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

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