FrontendPrep
Menu
Topics
Questions
Guides
Challenges
Soon
Practice Coding

Interview Questions

Sharpen your skills with curated frontend engineering interview questions. Dive deep into concepts, explore senior explanations, and learn practical workarounds.

Total Directory
76questions loaded
23 Easy31 Medium22 Hard

All Curated Questions

76

Search, sort, and filter through every curated frontend question by topic or difficulty.

Show
Topic
Sort

Showing 76 of 76 questions

CSS & LayoutsEasy

CSS Box Model: content-box vs. border-box

Master the CSS Box Model. Learn the differences between content-box and border-box, margin collapsing, block vs. inline layouts, and modern layout sizing calculations.

CSSBox ModelLayouts+1
8 min read
View
CSS & LayoutsEasy

CSS Positioning: Static, Relative, Absolute, Fixed, and Sticky

Master CSS positioning models. Learn how static, relative, absolute, fixed, and sticky work, how they impact the normal document flow, and how stacking contexts are formed.

CSSLayoutsStacking Context
5 min read
View
CSS & LayoutsEasy

CSS Specificity: How Styles Are Applied

Master CSS Specificity rules. Learn how the browser calculates specificity scores, inline styles, !important, and how cascade rules determine which styles win.

CSSSpecificityCascade+1
8 min read
View
CSS & LayoutsEasy

CSS: Custom Properties (CSS Variables) vs. Sass/Less Variables

Understand runtime CSS Custom Properties, scope cascading, JS integration for dynamic themes, and why they outshine preprocessor compilation variables.

CSSCustom PropertiesThemes
6 min read
View
CSS & LayoutsMedium

Flexbox vs. CSS Grid: Key Differences and Best Practices

Understand when to use Flexbox (1D) vs. CSS Grid (2D) for modern web layouts. Learn their differences, content-first vs. layout-first design, alignment properties, and key interview scenarios.

CSSFlexboxGrid+1
6 min read
View
CSS & LayoutsEasy

CSS Flexbox: Layout Guide and Practice

Master CSS Flexbox. Learn about main and cross axes, flex container and item properties (grow, shrink, basis), alignment, and real-world UI design solutions.

CSSFlexboxLayouts
7 min read
View
CSS & LayoutsMedium

CSS Grid: Layout Guide and Practice

Master CSS Grid. Learn about grid templates, lines, areas, auto-fit/auto-fill, track sizing with fr units, and building complex two-dimensional layouts.

CSSGridLayouts
8 min read
View
CSS & LayoutsMedium

CSS: Modern :has() Selector and Pseudo-classes vs. Pseudo-elements

Master pseudo-classes, pseudo-elements, and the modern native parent selector ':has()' to create complex relational styling rules without JavaScript.

CSSSelectorsLayouts
7 min read
View
JavaScriptMedium

JavaScript Async/Await Interview Questions

Master JavaScript async/await interview questions with practical examples. Learn how async functions, await, promises, error handling, concurrency, and the event loop work under the hood.

JavaScriptAsync AwaitPromises+2
12 min read
View
JavaScriptEasy

JavaScript: call vs. apply vs. bind

Explain explicit function context binding in JavaScript. Learn the differences between call, apply, and bind, and how to write a custom polyfill for bind.

JavaScriptFunctionsContext
6 min read
View
Showing 1 to 10 of 76 questions
•••