Chuyển tới nội dung chính

Câu hỏi mới đã được thêm!Khám phá ngay

frontendprofrontendpro
Tổng quan
Tất cả câu hỏi luyện tậpFrameworks / ngôn ngữĐịnh dạng câu hỏiTất cả quiz
GIẢM 20%

Hoàn thành nhiệm vụ đơn giản để mở khóa ưu đãi

Xem nhiệm vụ
frontendprofrontendproTổng quan
Đăng nhập
GiáMỚITruy cập đầy đủĐăng nhập
frontendprofrontendpro

Tài liệu Software Engineering

Luyện tập

  • Tất cả câu hỏi
  • Tất cả quiz
  • Tất cả tài liệu

Khám phá

  • Tổng quan
  • Tiết kiệm thời gian
  • Frameworks / ngôn ngữ

Tài khoản

  • Đăng nhập
  • Đăng ký

© 2026 frontendpro. Bảo lưu mọi quyền.

DiscordLinkedInGitHub

Quiz

Mới bắt đầu? Hãy thử các câu quiz dễ.

CodingSystem designQuiz
105quiz210phút ước tính0đã hoàn thành

Which of the following is NOT a JavaScript primitive data type?

JavaScriptData TypesCơ bản4 lựa chọn

Which operator is used to check the data type of a variable in JavaScript?

JavaScriptType CheckingCơ bản4 lựa chọn

Which statement about var, let, and const is correct?

JavaScriptVariablesCơ bản4 lựa chọn

Which is NOT a common way to convert a string to a number in JavaScript?

JavaScriptConversionCơ bản4 lựa chọn

How do you embed an expression inside a template literal?

JavaScriptTemplate LiteralsCơ bản4 lựa chọn

What does the spread operator (...) do with an array like [...arr]?

JavaScriptSpreadCơ bản4 lựa chọn

What is hoisting in JavaScript?

JavaScriptHoistingCơ bản4 lựa chọn

How can you best avoid problems caused by hoisting?

JavaScriptHoistingCơ bản4 lựa chọn

What is the key difference between == and === in JavaScript?

JavaScriptEqualityCơ bản4 lựa chọn

What is the difference between break and continue?

JavaScriptControl FlowCơ bản4 lựa chọn

What is the syntax of the ternary operator?

JavaScriptOperatorsCơ bản4 lựa chọn

Which array method gives you both the element and its index in the callback?

JavaScriptArraysCơ bản4 lựa chọn

What does the switch statement do when no case matches?

JavaScriptControl FlowCơ bản4 lựa chọn

What do rest parameters (...args) do?

JavaScriptFunctionsCơ bản4 lựa chọn

What is the difference between a parameter and an argument?

JavaScriptFunctionsCơ bản4 lựa chọn

What is a key benefit of arrow functions in callbacks?

JavaScriptFunctionsCơ bản4 lựa chọn

What is a callback function?

JavaScriptCallbacksCơ bản4 lựa chọn

What is a typical use case for anonymous functions?

JavaScriptAnonymous FunctionsCơ bản4 lựa chọn

When is a default parameter's value used?

JavaScriptDefault ParametersCơ bản4 lựa chọn

Which is NOT a standard way to create an object in JavaScript?

JavaScriptObjectsCơ bản4 lựa chọn

Which array method transforms each element and returns a new array?

JavaScriptArraysCơ bản4 lựa chọn

What does destructuring assignment let you do?

JavaScriptDestructuringCơ bản4 lựa chọn

How can you reliably check whether an object is empty?

JavaScriptObjectsCơ bản4 lựa chọn

What is the key difference between synchronous and asynchronous functions?

JavaScriptAsyncCơ bản4 lựa chọn

What are the three states of a Promise?

JavaScriptPromisesCơ bản4 lựa chọn

Which keywords implement inheritance in ES2015 classes?

JavaScriptClassesCơ bản4 lựa chọn

What is the convention when naming a constructor function?

JavaScriptConstructorsCơ bản4 lựa chọn

Which are the three main types of scope in JavaScript?

JavaScriptScopeCơ bản4 lựa chọn

A common way to preserve the correct `this` when passing a method as a callback is:

JavaScriptThisCơ bản4 lựa chọn

What is the DOM?

JavaScriptDomCơ bản4 lựa chọn

Which method creates a new element to insert into the DOM?

JavaScriptDomCơ bản4 lựa chọn

How do you attach an event listener to an element?

JavaScriptEventsCơ bản4 lựa chọn

In event bubbling, an event propagates:

JavaScriptEventsCơ bản4 lựa chọn

How do you stop an event's default action, e.g. a form submitting?

JavaScriptEventsCơ bản4 lựa chọn

How do you toggle a CSS class on an element in JavaScript?

JavaScriptDomCơ bản4 lựa chọn

What is the difference between the Window and Document objects?

JavaScriptBomCơ bản4 lựa chọn

What does the Fetch API's fetch() function return?

JavaScriptFetchCơ bản4 lựa chọn

Which is a popular third-party library for making API calls?

JavaScriptApi CallsCơ bản4 lựa chọn

Which HTML tag shows content when JavaScript is disabled?

JavaScriptHtml JsCơ bản4 lựa chọn

How do you redirect the browser to a new URL in JavaScript?

JavaScriptNavigationCơ bản4 lựa chọn

Why are JavaScript modules useful?

JavaScriptModulesCơ bản4 lựa chọn

How do you export a single default value from an ES module?

JavaScriptModulesCơ bản4 lựa chọn

Where are a JavaScript module's metadata fields (name, version, dependencies) typically defined?

JavaScriptModulesCơ bản4 lựa chọn

Which are the three main categories of JavaScript errors?

JavaScriptErrorsCơ bản4 lựa chọn

What is the role of a try...catch block?

JavaScriptErrorsCơ bản4 lựa chọn

What is the difference between a Set and a Map?

JavaScriptCollectionsCơ bản4 lựa chọn

How do you convert a Set to an array?

JavaScriptCollectionsCơ bản4 lựa chọn

What is lazy loading?

JavaScriptPerformanceCơ bản4 lựa chọn

What is caching used for in front-end performance?

JavaScriptPerformanceCơ bản4 lựa chọn

Which tool provides a Performance panel and audits for analyzing JS performance?

JavaScriptPerformanceCơ bản4 lựa chọn

Which testing type checks individual components in isolation?

JavaScriptTestingCơ bản4 lựa chọn

Which is a popular JavaScript testing framework known for integration with React?

JavaScriptTestingCơ bản4 lựa chọn

What are design patterns?

JavaScriptDesign PatternsCơ bản4 lựa chọn

Why is input validation important for security?

JavaScriptSecurityCơ bản4 lựa chọn

Which statement pauses execution to invoke the debugger where supported?

JavaScriptDebuggingCơ bản4 lựa chọn

What is the standard way to share code between JavaScript files?

JavaScriptModulesCơ bản4 lựa chọn

What kind of technology is React?

ReactReact BasicsCơ bản4 lựa chọn

Which statement best describes a React Element?

ReactReact ElementsCơ bản4 lựa chọn

What does JSX stand for?

ReactJsxCơ bản4 lựa chọn

What is the key difference between state and props?

ReactState PropsCơ bản4 lựa chọn

What is the purpose of the `key` prop when rendering lists?

ReactKeysCơ bản4 lựa chọn

Using array indices as keys is problematic mainly when the list is:

ReactKeysCơ bản4 lựa chọn

In a controlled component, the source of truth for a form input's value is:

ReactControlled ComponentsCơ bản4 lựa chọn

Which is a common pitfall when using React Context?

ReactContextCơ bản4 lựa chọn

What do hooks let you do?

ReactHooksCơ bản4 lựa chọn

Where must React hooks be called?

ReactHooks RulesCơ bản4 lựa chọn

When does `useEffect` run relative to the browser paint?

ReactEffectsCơ bản4 lựa chọn

What does the updater (callback) form `setCount(c => c + 1)` guarantee?

ReactSetstateCơ bản4 lựa chọn

What does an empty dependency array `[]` in useEffect mean?

ReactEffectsCơ bản4 lựa chọn

What is `useRef` primarily used for?

ReactUserefCơ bản4 lựa chọn

What does `useCallback` return?

ReactUsecallbackCơ bản4 lựa chọn

What is `useMemo` used for?

ReactUsememoCơ bản4 lựa chọn

What does `useReducer` return?

ReactUsereducerCơ bản4 lựa chọn

What does the `useId` hook generate?

ReactUseidCơ bản4 lựa chọn

What triggers a re-render in React?

ReactRenderingCơ bản4 lựa chọn

What are React Fragments used for?

ReactFragmentsCơ bản4 lựa chọn

What was `forwardRef()` historically used for?

ReactRefsCơ bản4 lựa chọn

What is the most idiomatic way to fully reset a component's state?

ReactState ResetCơ bản4 lựa chọn

Why does React recommend against mutating state directly?

ReactImmutabilityCơ bản4 lựa chọn

What do error boundaries do?

ReactError BoundariesCơ bản4 lựa chọn

Which library encourages testing React components the way users interact with them?

ReactTestingCơ bản4 lựa chọn

What is React hydration?

ReactHydrationCơ bản4 lựa chọn

What do React Portals let you do?

ReactPortalsCơ bản4 lựa chọn

Which browser extension helps inspect the React component tree?

ReactDebuggingCơ bản4 lựa chọn

What does React Strict Mode render to the page?

ReactStrict ModeCơ bản4 lựa chọn

Which libraries are commonly used to localize React applications?

ReactI18nCơ bản4 lựa chọn

What is code splitting in a React application?

ReactCode SplittingCơ bản4 lựa chọn

In 2026, what should you adopt first to reduce context-driven re-renders?

ReactContext PerfCơ bản4 lựa chọn

What is a higher order component (HOC)?

ReactHocCơ bản4 lựa chọn

What data flow does the Flux pattern enforce?

ReactFluxCơ bản4 lựa chọn

In React's one-way data flow, data moves:

ReactData FlowCơ bản4 lựa chọn

What does the React documentation recommend instead of hand-rolling useEffect + fetch?

ReactAsync DataCơ bản4 lựa chọn

What is server-side rendering (SSR) in React?

ReactSsrCơ bản4 lựa chọn

When does static generation (SSG) render pages?

ReactSsgCơ bản4 lựa chọn

In the presentational vs container pattern, presentational components:

ReactPatternsCơ bản4 lựa chọn

Which is a common data-fetching pitfall in React?

ReactData Fetching PitfallsCơ bản4 lựa chọn

What is a render prop?

ReactRender PropsCơ bản4 lựa chọn

Which is a React anti-pattern?

ReactAnti PatternsCơ bản4 lựa chọn

Which tool fits purely local component state?

ReactState DecisionCơ bản4 lựa chọn

What is the composition pattern in React?

ReactCompositionCơ bản4 lựa chọn

What is the 'virtual DOM' in React?

ReactVirtual DomCơ bản4 lựa chọn

What is React Fiber?

ReactFiberCơ bản4 lựa chọn

What is reconciliation in React?

ReactReconciliationCơ bản4 lựa chọn

What does React Suspense let you do?

ReactSuspenseCơ bản4 lựa chọn

What happens immediately when a useState setter is called?

ReactSetstateCơ bản4 lựa chọn