Interviews
开始使用
准备
准备
New questions added in 9月 2026 ->
价格
新
登录 / 注册
获得完整访问权限
New questions added in 9月 2026 ->
价格
新
登录 / 注册
获得完整访问权限
JavaScript
React
Angular
Vue
Svelte
CSS
HTML
TypeScript
Vanilla JS 面试问题
50 个最重要的 JavaScript 面试问题,从库 API 和实用函数到算法和 UI 组件。
前面试官提供的问答和解答
测试场景
在浏览器中编码
搜索问题
按排序
问题数量
5
9
59
个问题
总时间
2
5
25
小时总计
题目列表
原生 JS 面试指南
探索我们的入门指南,在开始练习之前先全面了解 原生 JS 面试准备。
0
/3 指南
指南
Counter
热身问题
Build a simple counter that increments whenever a button is clicked
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
47.5k 完成
Todo List
Build a Todo list that lets users add new tasks and delete existing tasks
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
18.3k 完成
Job Board
高级
Build a job board that displays the latest job postings from Hacker News
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
7.59k 完成
Contact Form
Build a contact form which submits user feedback and contact details to a back end API
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
25.8k 完成
Tabs
Build a tabs component that displays a list of tab elements and one associated panel of content at a time
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
13.1k 完成
Tabs II
高级
Build a semi-accessible tabs component that has the right ARIA roles, states, and properties
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.3k 完成
Tabs III
高级
Build a fully accessible tabs component that has keyboard support according to ARIA specifications
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
815 完成
Accordion
Build an accordion component that displays a list of vertically stacked sections with each containing a title and content snippet
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
13.8k 完成
Accordion II
高级
Build an accessible accordion component that has the appropriate ARIA roles, states, and properties
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.61k 完成
Accordion III
高级
Build a fully accessible accordion component that has keyboard support according to ARIA specifications
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
942 完成
Holy Grail
Build the famous holy grail layout consisting of a header, 3 columns, and a footer
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
20.3k 完成
Progress Bars
Build a list of progress bars that fill up gradually when they are added to the page
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
7.33k 完成
Star Rating
Build a star rating component that shows a row of star icons for users to select the number of filled stars corresponding to the rating
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
7.31k 完成
Stopwatch
Build a stopwatch widget that can measure how much time has passed
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
2.92k 完成
Like Button
Build a Like button that changes appearance based on its state
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
4.41k 完成
Image Carousel
Build an image carousel that displays a sequence of images
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
3.59k 完成
Image Carousel II
高级
Build an image carousel that smoothly transitions between images
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
600 完成
Image Carousel III
高级
Build an image carousel that smoothly transitions between images and has a minimal DOM footprint
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
265 完成
Traffic Light
Build a traffic light where the lights switch from green to yellow to red after predetermined intervals and loop indefinitely
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
5.56k 完成
Digital Clock
Build a 7-segment digital clock that shows the current time
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
3.52k 完成
File Explorer
高级
Build a file explorer component to navigate files and directories in a tree-like hierarchical viewer
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
3.93k 完成
Tic-tac-toe
Build a tic-tac-toe game that is playable by two players
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
3.23k 完成
Tic-tac-toe II
高级
Build an N x N tic-tac-toe game that requires M consecutive marks to win
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
472 完成
Transfer List
Build a component that allows transferring items between two lists
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
2.63k 完成
Transfer List II
高级
Build a component that allows transferring items between two lists, bulk selection/deselection of items, and adding new items
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
410 完成
Nested Checkboxes
高级
Build a nested checkboxes component with parent-child selection logic
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
995 完成
Modal Dialog
高级
Build a reusable modal dialog component that can be opened and closed
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
3.27k 完成
Modal Dialog II
高级
Build a semi-accessible modal dialog component that has the right ARIA roles, states, and properties
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
596 完成
Modal Dialog III
高级
Build a moderately accessible modal dialog component that supports common ways to close the dialog
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
553 完成
Modal Dialog IV
高级
Build a fully accessible modal dialog component that supports all required keyboard interactions
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
252 完成
Data Table
Build a user data table with pagination features
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
4.92k 完成
Data Table II
高级
Build a user data table with sorting features
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.38k 完成
Data Table III
高级
Build a generalized data table with pagination and sorting features
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
408 完成
Undoable Counter
高级
Build a counter with a history of the values and ability to undo/redo actions
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.21k 完成
Connect Four
高级
Build a game for two players who take turns to drop colored discs from the top into a vertically suspended board/grid
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
345 完成
Users Database
高级
Build a UI to filter, create, update, and delete users
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
654 完成
Whack-A-Mole
高级
Build a popular arcade game where players attempt to hit moles as they pop up from holes in a board.
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
485 完成
Memory Game
高级
Build a memory game where the player needs to match pairs of cards
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
571 完成
Selectable Cells
高级
Build an interface where users can drag to select multiple cells within a grid
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
161 完成
Wordle
高级
Build Wordle, the word-guessing game that took the world by storm
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
277 完成
Flight Booker
高级
Build a component that books a flight for specified dates
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
3.85k 完成
Generate Table
高级
Generate a table of numbers given the rows and columns
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
3.23k 完成
Progress Bar
高级
Build a progress bar component that shows the percentage completion of an operation
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
5.11k 完成
Temperature Converter
高级
Build a temperature converter widget that converts temperature values between Celsius and Fahrenheit
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
4.25k 完成
Mortgage Calculator
Build a calculator that computes the monthly mortgage for a loan
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
4.93k 完成
Tweet
高级
Build a component that resembles a Tweet from Twitter
用户界面编码
UI 编码
难度
简单
可用的框架
已完成用户
2.63k 完成
Analog Clock
高级
Build an analog clock where the hands update and move like a real clock
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.13k 完成
Dice Roller
Build a dice roller app that simulates the results of rolling 6-sided dice
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.92k 完成
File Explorer II
高级
Build a semi-accessible file explorer component that has the appropriate ARIA roles, states, and properties
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
578 完成
File Explorer III
高级
Build a file explorer component using a flat DOM structure
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
526 完成
Grid Lights
高级
Build a grid of lights where the lights deactivate in the reverse order they were activated
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.82k 完成
Progress Bars II
高级
Build a list of progress bars that fill up gradually in sequence, one at a time
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.25k 完成
Progress Bars III
高级
Build a list of progress bars that fill up gradually concurrently, up to a limit of 3
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
878 完成
Birth Year Histogram
高级
Build a widget that fetches birth year data from an API and plot it on a histogram
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
361 完成
Pixel Art
高级
Build a pixel art drawing tool where users can paint pixels with selected colors
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
316 完成
Signup Form
高级
Build a signup form that validates user details and submits to a backend API
用户界面编码
UI 编码
难度
中等
可用的框架
已完成用户
1.66k 完成
Auth Code Input
高级
Build an auth code input component that allows users to enter a 6-digit authorization code
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
493 完成
Progress Bars IV
高级
Build a list of progress bars that fill up gradually and concurrently, up to a limit of 3, and allow for pausing and resuming
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
476 完成
Data Table IV
高级
Build a generalized data table with pagination, sorting and filtering features
用户界面编码
UI 编码
难度
困难
可用的框架
已完成用户
254 完成