ReactAngularVueSvelteJavaScriptCSSHTMLTypeScript

Vanilla JS Interview Questions

20+ most important JavaScript interview questions, from library APIs and utility functions to algorithms and UI components.
Solved by ex-interviewers
Test scenarios
Code in browser

Questions List

Vanilla JS Interview GuidesExplore our starter guides to get a solid grasp of Vanilla JS interview prep before jumping into practice.
0/5 guides
GUIDES
  • CounterWarm up questionBuild a simple counter that increments whenever a button is clicked
    Available frameworks
  • AccordionBuild an accordion component that a displays a list of vertically stacked sections with each containing a title and content snippet
    Available frameworks
  • Contact FormBuild a contact form which submits user feedback and contact details to a back end API
    Available frameworks
  • Holy GrailBuild the famous holy grail layout consisting of a header, 3 columns, and a footer
    Available frameworks
  • Mortgage CalculatorBuild a calculator that computes the monthly mortgage for a loan
    Available frameworks
  • TabsBuild a tabs component that displays a list of tab elements and one associated panel of content at a time
    Available frameworks
  • Like ButtonBuild a Like button that changes appearance based on the states
    Available frameworks
  • Star RatingBuild a star rating component that shows a row of star icons for users to select the number of filled stars corresponding to the rating
    Available frameworks
  • Todo ListBuild a Todo list that lets users add new tasks and delete existing tasks
    Available frameworks
  • Traffic LightBuild a traffic light where the lights switch from green to yellow to red after predetermined intervals and loop indefinitely
    Available frameworks
  • Digital ClockBuild a 7-segment digital clock that shows the current time
    Available frameworks
  • Job BoardBuild a job board that displays the latest job postings from Hacker News
    Available frameworks
  • StopwatchBuild a stopwatch widget that can measure how much time has passed
    Available frameworks
  • Flight BookerPremiumBuild a component that books a flight for specified dates
    Available frameworks
  • Generate TablePremiumGenerate a table of numbers given the rows and columns
    Available frameworks
  • Progress BarPremiumBuild a progress bar component that shows the percentage completion of an operation
    Available frameworks
  • Temperature ConverterPremiumBuild a temperature converter widget that converts temperature values between Celsius and Fahrenheit
    Available frameworks
  • TweetPremiumBuild a component that resembles a Tweet from Twitter
    Available frameworks
  • Accordion IIPremiumBuild an accessible accordion component that has the right ARIA roles, states, and properties
    Available frameworks
  • Analog ClockPremiumBuild an analog clock where the hands update and move like a real clock
    Available frameworks
  • Tabs IIPremiumBuild a semi-accessible tabs component that has the right ARIA roles, states, and properties
    Available frameworks
  • Signup FormPremiumBuild a signup form that does validation on user details and submits to a back end API
    Available frameworks