Chuyển tới nội dung chính
Câu hỏi mới đã được thêm!
Khám phá ngay
frontendpro
Tổng quan
Luyện câu hỏi
vi
Đăng nhập
Giá
MỚI
Truy cập đầy đủ
vi
Đăng nhập
Quiz
Mới bắt đầu? Hãy thử
các câu quiz dễ
.
Mặc định
Tiêu đề
Độ khó
Coding
System design
Quiz
JavaScript
React
105
quiz
210
phút ước tính
0
đã hoàn thành
Bộ lọc
1
Which of the following is NOT a JavaScript primitive data type?
JavaScript
Data Types
Cơ bản
4 lựa chọn
Which operator is used to check the data type of a variable in JavaScript?
JavaScript
Type Checking
Cơ bản
4 lựa chọn
Which statement about var, let, and const is correct?
JavaScript
Variables
Cơ bản
4 lựa chọn
Which is NOT a common way to convert a string to a number in JavaScript?
JavaScript
Conversion
Cơ bản
4 lựa chọn
How do you embed an expression inside a template literal?
JavaScript
Template Literals
Cơ bản
4 lựa chọn
What does the spread operator (...) do with an array like [...arr]?
JavaScript
Spread
Cơ bản
4 lựa chọn
What is hoisting in JavaScript?
JavaScript
Hoisting
Cơ bản
4 lựa chọn
How can you best avoid problems caused by hoisting?
JavaScript
Hoisting
Cơ bản
4 lựa chọn
What is the key difference between == and === in JavaScript?
JavaScript
Equality
Cơ bản
4 lựa chọn
What is the difference between break and continue?
JavaScript
Control Flow
Cơ bản
4 lựa chọn
What is the syntax of the ternary operator?
JavaScript
Operators
Cơ bản
4 lựa chọn
Which array method gives you both the element and its index in the callback?
JavaScript
Arrays
Cơ bản
4 lựa chọn
What does the switch statement do when no case matches?
JavaScript
Control Flow
Cơ bản
4 lựa chọn
What do rest parameters (...args) do?
JavaScript
Functions
Cơ bản
4 lựa chọn
What is the difference between a parameter and an argument?
JavaScript
Functions
Cơ bản
4 lựa chọn
What is a key benefit of arrow functions in callbacks?
JavaScript
Functions
Cơ bản
4 lựa chọn
What is a callback function?
JavaScript
Callbacks
Cơ bản
4 lựa chọn
What is a typical use case for anonymous functions?
JavaScript
Anonymous Functions
Cơ bản
4 lựa chọn
When is a default parameter's value used?
JavaScript
Default Parameters
Cơ bản
4 lựa chọn
Which is NOT a standard way to create an object in JavaScript?
JavaScript
Objects
Cơ bản
4 lựa chọn
Which array method transforms each element and returns a new array?
JavaScript
Arrays
Cơ bản
4 lựa chọn
What does destructuring assignment let you do?
JavaScript
Destructuring
Cơ bản
4 lựa chọn
How can you reliably check whether an object is empty?
JavaScript
Objects
Cơ bản
4 lựa chọn
What is the key difference between synchronous and asynchronous functions?
JavaScript
Async
Cơ bản
4 lựa chọn
What are the three states of a Promise?
JavaScript
Promises
Cơ bản
4 lựa chọn
Which keywords implement inheritance in ES2015 classes?
JavaScript
Classes
Cơ bản
4 lựa chọn
What is the convention when naming a constructor function?
JavaScript
Constructors
Cơ bản
4 lựa chọn
Which are the three main types of scope in JavaScript?
JavaScript
Scope
Cơ bản
4 lựa chọn
A common way to preserve the correct `this` when passing a method as a callback is:
JavaScript
This
Cơ bản
4 lựa chọn
What is the DOM?
JavaScript
Dom
Cơ bản
4 lựa chọn
Which method creates a new element to insert into the DOM?
JavaScript
Dom
Cơ bản
4 lựa chọn
How do you attach an event listener to an element?
JavaScript
Events
Cơ bản
4 lựa chọn
In event bubbling, an event propagates:
JavaScript
Events
Cơ bản
4 lựa chọn
How do you stop an event's default action, e.g. a form submitting?
JavaScript
Events
Cơ bản
4 lựa chọn
How do you toggle a CSS class on an element in JavaScript?
JavaScript
Dom
Cơ bản
4 lựa chọn
What is the difference between the Window and Document objects?
JavaScript
Bom
Cơ bản
4 lựa chọn
What does the Fetch API's fetch() function return?
JavaScript
Fetch
Cơ bản
4 lựa chọn
Which is a popular third-party library for making API calls?
JavaScript
Api Calls
Cơ bản
4 lựa chọn
Which HTML tag shows content when JavaScript is disabled?
JavaScript
Html Js
Cơ bản
4 lựa chọn
How do you redirect the browser to a new URL in JavaScript?
JavaScript
Navigation
Cơ bản
4 lựa chọn
Why are JavaScript modules useful?
JavaScript
Modules
Cơ bản
4 lựa chọn
How do you export a single default value from an ES module?
JavaScript
Modules
Cơ bản
4 lựa chọn
Where are a JavaScript module's metadata fields (name, version, dependencies) typically defined?
JavaScript
Modules
Cơ bản
4 lựa chọn
Which are the three main categories of JavaScript errors?
JavaScript
Errors
Cơ bản
4 lựa chọn
What is the role of a try...catch block?
JavaScript
Errors
Cơ bản
4 lựa chọn
What is the difference between a Set and a Map?
JavaScript
Collections
Cơ bản
4 lựa chọn
How do you convert a Set to an array?
JavaScript
Collections
Cơ bản
4 lựa chọn
What is lazy loading?
JavaScript
Performance
Cơ bản
4 lựa chọn
What is caching used for in front-end performance?
JavaScript
Performance
Cơ bản
4 lựa chọn
Which tool provides a Performance panel and audits for analyzing JS performance?
JavaScript
Performance
Cơ bản
4 lựa chọn
Which testing type checks individual components in isolation?
JavaScript
Testing
Cơ bản
4 lựa chọn
Which is a popular JavaScript testing framework known for integration with React?
JavaScript
Testing
Cơ bản
4 lựa chọn
What are design patterns?
JavaScript
Design Patterns
Cơ bản
4 lựa chọn
Why is input validation important for security?
JavaScript
Security
Cơ bản
4 lựa chọn
Which statement pauses execution to invoke the debugger where supported?
JavaScript
Debugging
Cơ bản
4 lựa chọn
What is the standard way to share code between JavaScript files?
JavaScript
Modules
Cơ bản
4 lựa chọn
What kind of technology is React?
React
React Basics
Cơ bản
4 lựa chọn
Which statement best describes a React Element?
React
React Elements
Cơ bản
4 lựa chọn
What does JSX stand for?
React
Jsx
Cơ bản
4 lựa chọn
What is the key difference between state and props?
React
State Props
Cơ bản
4 lựa chọn
What is the purpose of the `key` prop when rendering lists?
React
Keys
Cơ bản
4 lựa chọn
Using array indices as keys is problematic mainly when the list is:
React
Keys
Cơ bản
4 lựa chọn
In a controlled component, the source of truth for a form input's value is:
React
Controlled Components
Cơ bản
4 lựa chọn
Which is a common pitfall when using React Context?
React
Context
Cơ bản
4 lựa chọn
What do hooks let you do?
React
Hooks
Cơ bản
4 lựa chọn
Where must React hooks be called?
React
Hooks Rules
Cơ bản
4 lựa chọn
When does `useEffect` run relative to the browser paint?
React
Effects
Cơ bản
4 lựa chọn
What does the updater (callback) form `setCount(c => c + 1)` guarantee?
React
Setstate
Cơ bản
4 lựa chọn
What does an empty dependency array `[]` in useEffect mean?
React
Effects
Cơ bản
4 lựa chọn
What is `useRef` primarily used for?
React
Useref
Cơ bản
4 lựa chọn
What does `useCallback` return?
React
Usecallback
Cơ bản
4 lựa chọn
What is `useMemo` used for?
React
Usememo
Cơ bản
4 lựa chọn
What does `useReducer` return?
React
Usereducer
Cơ bản
4 lựa chọn
What does the `useId` hook generate?
React
Useid
Cơ bản
4 lựa chọn
What triggers a re-render in React?
React
Rendering
Cơ bản
4 lựa chọn
What are React Fragments used for?
React
Fragments
Cơ bản
4 lựa chọn
What was `forwardRef()` historically used for?
React
Refs
Cơ bản
4 lựa chọn
What is the most idiomatic way to fully reset a component's state?
React
State Reset
Cơ bản
4 lựa chọn
Why does React recommend against mutating state directly?
React
Immutability
Cơ bản
4 lựa chọn
What do error boundaries do?
React
Error Boundaries
Cơ bản
4 lựa chọn
Which library encourages testing React components the way users interact with them?
React
Testing
Cơ bản
4 lựa chọn
What is React hydration?
React
Hydration
Cơ bản
4 lựa chọn
What do React Portals let you do?
React
Portals
Cơ bản
4 lựa chọn
Which browser extension helps inspect the React component tree?
React
Debugging
Cơ bản
4 lựa chọn
What does React Strict Mode render to the page?
React
Strict Mode
Cơ bản
4 lựa chọn
Which libraries are commonly used to localize React applications?
React
I18n
Cơ bản
4 lựa chọn
What is code splitting in a React application?
React
Code Splitting
Cơ bản
4 lựa chọn
In 2026, what should you adopt first to reduce context-driven re-renders?
React
Context Perf
Cơ bản
4 lựa chọn
What is a higher order component (HOC)?
React
Hoc
Cơ bản
4 lựa chọn
What data flow does the Flux pattern enforce?
React
Flux
Cơ bản
4 lựa chọn
In React's one-way data flow, data moves:
React
Data Flow
Cơ bản
4 lựa chọn
What does the React documentation recommend instead of hand-rolling useEffect + fetch?
React
Async Data
Cơ bản
4 lựa chọn
What is server-side rendering (SSR) in React?
React
Ssr
Cơ bản
4 lựa chọn
When does static generation (SSG) render pages?
React
Ssg
Cơ bản
4 lựa chọn
In the presentational vs container pattern, presentational components:
React
Patterns
Cơ bản
4 lựa chọn
Which is a common data-fetching pitfall in React?
React
Data Fetching Pitfalls
Cơ bản
4 lựa chọn
What is a render prop?
React
Render Props
Cơ bản
4 lựa chọn
Which is a React anti-pattern?
React
Anti Patterns
Cơ bản
4 lựa chọn
Which tool fits purely local component state?
React
State Decision
Cơ bản
4 lựa chọn
What is the composition pattern in React?
React
Composition
Cơ bản
4 lựa chọn
What is the 'virtual DOM' in React?
React
Virtual Dom
Cơ bản
4 lựa chọn
What is React Fiber?
React
Fiber
Cơ bản
4 lựa chọn
What is reconciliation in React?
React
Reconciliation
Cơ bản
4 lựa chọn
What does React Suspense let you do?
React
Suspense
Cơ bản
4 lựa chọn
What happens immediately when a useState setter is called?
React
Setstate
Cơ bản
4 lựa chọn