Modals interview questions
Practice 4 questions on modals. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
4 questions
- EASY
Modal Dialog
Build a reusable modal dialog component that you can open from a trigger and close with a button.
15 minUI / FrameworksAngularReactHTML / CSS / JSVue - MEDIUM
Modal Dialog II
Build a modal dialog with the correct ARIA roles, states, and properties for assistive technology.
25 minUI / FrameworksAngularReactHTML / CSS / JSVue - MEDIUM
Modal Dialog III
Build a modal dialog that closes via the close button, backdrop click, and the Escape key.
25 minUI / FrameworksAngularReactHTML / CSS / JSVue - HARD
Modal Dialog IV
PREMIUMBuild a fully accessible modal dialog with focus trapping, focus restoration, and keyboard support.
40 minUI / FrameworksAngularReactHTML / CSS / JSVue