Validation interview questions
Practice 12 questions on validation. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
12 questions
- EASY
Flight Booker
Build a small form that books either a one-way or return flight, with validation tying the two date fields together.
15 minUI / FrameworksAngularReactHTML / CSS / JSVue - EASY
Type Utilities
Implement a set of helper functions that report the primitive type of any JavaScript value.
15 minJavaScript - MEDIUM
Conforms To
Implement a function that checks whether an object satisfies a source schema of predicate validators.
25 minJavaScript - MEDIUM
Form Validation Engine
Build a schema-driven form validator with composable per-field rules, cross-field checks, and async validators that report all errors.
30 minJavaScriptStripe · Atlassian · Airbnb - MEDIUM
IPv4 / IPv6 Validate
Validate IPv4 dotted-quad and IPv6 addresses, handling octet ranges, leading zeros, and :: zero-group compression.
25 minJavaScript - MEDIUM
Is Empty
Implement a function that decides whether a value is empty across arrays, strings, objects, Maps, Sets, and primitives.
20 minJavaScript - MEDIUM
Multi-Step Form
Build a wizard form with next/back navigation, per-step validation, and a progress indicator.
25 minUI / FrameworksAngularReactHTML / CSS / JSVue - MEDIUM
Schema Validator
Implement a small schema library that validates primitives and flat object shapes with composable rules.
25 minJavaScript - MEDIUM
Schema Validator II
Build a tiny schema validation library that supports chainable min and max rules on primitive types.
25 minJavaScript - MEDIUM
Signup Form
Build a signup form that validates user details on submit and posts them to a back-end API.
25 minUI / FrameworksAngularReactHTML / CSS / JSVue - MEDIUM
Type Utilities II
Implement helpers that accurately identify non-primitive JavaScript values such as arrays, plain objects, dates, and maps.
25 minJavaScript - HARD
Schema Validator III
PREMIUMExtend a tiny schema validator to handle nested object and array shapes plus optional fields.
40 minJavaScript