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

Câu hỏi phỏng vấn

Nếu bạn mới bắt đầu phỏng vấn frontend, chúng tôi khuyên bạn bắt đầu với danh sách cơ bản.

Quiz
262câu hỏi105giờ tổng

Explain what happens when the `useState` setter function is called in React

## TL;DR When the setter function returned by the hook is called in React, it schedules an update to the component's…

UI codingNâng cao

How does virtual DOM in React work? What are its benefits and downsides?

## TL;DR The virtual DOM in React is a lightweight copy of the actual DOM. When the state of a component changes, Rea…

UI codingNâng cao

What is the difference between `useEffect` and `useLayoutEffect` in React?

## TL;DR Both hooks run side effects after render, but they differ in when they fire relative to paint: - runs as…

UI codingNâng cao

Explain the presentational vs container component pattern in React

## TL;DR The presentational vs container component pattern (also known as "dumb vs smart components") splits componen…

UI codingNâng cao

Explain the composition pattern in React

## TL;DR The composition pattern in React is the practice of building UIs by combining smaller, reusable components i…

UI codingNâng cao

Explain static generation of React applications and its benefits

## TL;DR Static generation (SSG) pre-renders pages to HTML at build time, instead of rendering them per request. The…

UI codingNâng cao

Explain server-side rendering of React applications and its benefits

## TL;DR Server-side rendering (SSR) in React involves rendering React components on the server and sending the resul…

UI codingNâng cao

How do you reset a component's state in React?

## TL;DR The most idiomatic way to reset a component's state in React is to give the component a prop and change it…

UI codingNâng cao

What are React Portals used for?

## TL;DR React Portals are used to render children into a DOM node that exists outside the hierarchy of the parent co…

UI codingNâng cao

What is the difference between React Node, React Element, and a React Component?

## TL;DR A React Node is anything React can render: a React Element, a string, a number, an array of nodes, a fragmen…

UI codingNâng cao

Explain what React hydration is

## TL;DR React hydration is the process of attaching event listeners and making a server-rendered HTML page interacti…

UI codingNâng cao

How do you decide between using React state, context, and external state managers?

## TL;DR Match the tool to the kind of state. Use / for local component state, and lift state up before reaching for…

UI codingNâng cao

Explain one-way data flow of React and its benefits

## TL;DR In React, one-way data flow means that data moves in a single direction: from parent components down to chil…

UI codingNâng cao

What is the purpose of the `key` prop in React?

## TL;DR The prop tells React how to identify each child in a list across renders so it can match the right componen…

UI codingNâng cao

How do you localize React applications?

## TL;DR To localize a React application, you typically use a library like or . First, you set up your translation f…

UI codingNâng cao

How do you handle asynchronous data loading in React applications?

## TL;DR In a modern React app, don't roll your own + for data loading — the React docs explicitly recommend agains…

UI codingNâng cao

What is the Flux pattern and what are its benefits?

## TL;DR The Flux pattern is an architectural design Facebook introduced for managing state in React applications. It…

UI codingNâng cao

How do you debug React applications?

## TL;DR To debug React applications, use the React Developer Tools browser extension to inspect the component tree,…

UI codingNâng cao

What is the difference between controlled and uncontrolled React Components?

## TL;DR A controlled component drives a form input from React state — you pass / plus an handler, and React state i…

UI codingNâng cao

When would you use document.write()?

<!-- Update here: /questions/when-would-you-use-document-write/en-US.mdx --> is rarely used in modern web development b…

JS functionsNâng cao

What are some of the advantages and disadvantages of using TypeScript and compile-to-JavaScript languages

<!-- Update here: /questions/what-are-some-of-the-advantages-disadvantages-of-writing-javascript-code-in-a-language-that…

JS functionsNâng cao

How do you organize your code?

<!-- Update here: /questions/how-do-you-organize-your-code-module-pattern-classical-inheritance/en-US.mdx --> I organize…

JS functionsTrung bình

How can you share code between JavaScript files?

Warm up question

<!-- Update here: /questions/how-can-you-share-code-between-files/en-US.mdx --> To share code between JavaScript files,…

JS functionsCơ bản

Explain what a single page app is and how to make one SEO-friendly

<!-- Update here: /questions/explain-what-a-single-page-app-is-and-how-to-make-one-seo-friendly/en-US.mdx --> A single p…

JS functionsTrung bình

How does JavaScript garbage collection work?

<!-- Update here: /questions/how-does-javascript-garbage-collection-work/en-US.mdx --> Garbage collection in JavaScript…

JS functionsNâng cao

What tools and techniques do you use for debugging JavaScript code?

<!-- Update here: /questions/what-tools-and-techniques-do-you-use-for-debugging-javascript-code/en-US.mdx --> Some of th…

JS functionsTrung bình

What is 'use strict'; (strict mode) in JavaScript for?

<!-- Update here: /questions/what-is-use-strict-what-are-the-advantages-and-disadvantages-to-using-it/en-US.mdx --> is…

JS functionsNâng cao

Explain the same-origin policy with regards to JavaScript

<!-- Update here: /questions/explain-the-same-origin-policy-with-regards-to-javascript/en-US.mdx --> The same-origin pol…

JS functionsTrung bình

How can you implement secure authentication and authorization in JavaScript applications?

<!-- Update here: /questions/how-can-you-implement-secure-authentication-and-authorization-in-javascript-applications/en…

JS functionsNâng cao

What are some tools and techniques for identifying security vulnerabilities in JavaScript code?

<!-- Update here: /questions/what-are-some-tools-and-techniques-for-identifying-security-vulnerabilities-in-javascript-c…

JS functionsTrung bình

Explain the concept of input validation and its importance in security

<!-- Update here: /questions/explain-the-concept-of-input-validation-and-its-importance-in-security/en-US.mdx --> Input…

JS functionsTrung bình

How can you prevent clickjacking attacks?

<!-- Update here: /questions/how-can-you-prevent-clickjacking-attacks/en-US.mdx --> To prevent clickjacking attacks, you…

JS functionsNâng cao

What are some common security headers and their purpose?

<!-- Update here: /questions/what-are-some-common-security-headers-and-their-purpose/en-US.mdx --> Security headers are…

JS functionsTrung bình

Explain the concept of Content Security Policy (CSP) and how it enhances security

<!-- Update here: /questions/explain-the-concept-of-content-security-policy-csp-and-how-it-enhances-security/en-US.mdx -…

JS functionsTrung bình

What are some best practices for handling sensitive data in JavaScript?

<!-- Update here: /questions/what-are-some-best-practices-for-handling-sensitive-data-in-javascript/en-US.mdx --> Handli…

JS functionsTrung bình

How can you prevent SQL injection vulnerabilities in JavaScript applications?

<!-- Update here: /questions/how-can-you-prevent-sql-injection-vulnerabilities-in-javascript-applications/en-US.mdx -->…

JS functionsTrung bình

Explain the concept of Cross-Site Request Forgery (CSRF) and its mitigation techniques

<!-- Update here: /questions/explain-the-concept-of-cross-site-request-forgery-csrf-and-its-mitigation-techniques/en-US.…

JS functionsTrung bình

What is Cross-Site Scripting (XSS) and how can you prevent it?

<!-- Update here: /questions/what-is-cross-site-scripting-xss-and-how-can-you-prevent-it/en-US.mdx --> Cross-Site Script…

JS functionsTrung bình

Why is extending built-in JavaScript objects not a good idea?

<!-- Update here: /questions/why-is-extending-built-in-javascript-objects-not-a-good-idea/en-US.mdx --> Extending a buil…

JS functionsTrung bình

What is the Command pattern and how is it used?

<!-- Update here: /questions/what-is-the-command-pattern-and-how-is-it-used/en-US.mdx --> The Command pattern is a behav…

JS functionsTrung bình

Explain the concept of the Strategy pattern

<!-- Update here: /questions/explain-the-concept-of-the-strategy-pattern/en-US.mdx --> The Strategy pattern is a behavio…

JS functionsTrung bình

What is the Decorator pattern and how is it used?

<!-- Update here: /questions/what-is-the-decorator-pattern-and-how-is-it-used/en-US.mdx --> The Decorator pattern is a s…

JS functionsTrung bình

Explain the concept of the Prototype pattern

Warm up question

<!-- Update here: /questions/explain-the-concept-of-the-prototype-pattern/en-US.mdx --> The Prototype pattern is a creat…

JS functionsCơ bản

What is the Module pattern and how does it help with encapsulation?

<!-- Update here: /questions/what-is-the-module-pattern-and-how-does-it-help-with-encapsulation/en-US.mdx --> The Module…

JS functionsTrung bình

Explain the Observer pattern and its use cases

<!-- Update here: /questions/explain-the-observer-pattern-and-its-use-cases/en-US.mdx --> The Observer pattern is a desi…

JS functionsTrung bình

What is the Factory pattern and how is it used?

<!-- Update here: /questions/what-is-the-factory-pattern-and-how-is-it-used/en-US.mdx --> The Factory pattern is a desig…

JS functionsTrung bình

Explain the concept of the Singleton pattern

Warm up question

<!-- Update here: /questions/explain-the-concept-of-the-singleton-pattern/en-US.mdx --> The Singleton pattern ensures th…

JS functionsCơ bản

What are design patterns and why are they useful?

Warm up question

<!-- Update here: /questions/what-are-design-patterns-and-why-are-they-useful/en-US.mdx --> Design patterns are reusable…

JS functionsCơ bản

What are some tools that can be used for JavaScript testing?

Warm up question

<!-- Update here: /questions/what-are-some-tools-that-can-be-used-for-javascript-testing/en-US.mdx --> For JavaScript te…

JS functionsCơ bản

Explain the concept of code coverage and how it can be used to assess test quality

<!-- Update here: /questions/explain-the-concept-of-code-coverage-and-how-it-can-be-used-to-assess-test-quality/en-US.md…

JS functionsTrung bình

What are some best practices for writing maintainable and effective tests in JavaScript?

<!-- Update here: /questions/what-are-some-best-practices-for-writing-maintainable-and-effective-tests/en-US.mdx --> To…

JS functionsTrung bình

How can you test asynchronous code in JavaScript?

<!-- Update here: /questions/how-can-you-test-asynchronous-code-in-javascript/en-US.mdx --> To test asynchronous code in…

JS functionsTrung bình

What are mocks and stubs and how are they used in testing?

<!-- Update here: /questions/what-are-mocks-and-stubs-and-how-are-they-used-in-testing/en-US.mdx --> Mocks and stubs are…

JS functionsNâng cao

Explain the concept of test-driven development (TDD)

<!-- Update here: /questions/explain-the-concept-of-test-driven-development-tdd/en-US.mdx --> Test-driven development (T…

JS functionsTrung bình

How do you write unit tests for JavaScript code?

<!-- Update here: /questions/how-do-you-write-unit-tests-for-javascript-code/en-US.mdx --> To write unit tests for JavaS…

JS functionsTrung bình

What are some popular JavaScript testing frameworks?

Warm up question

<!-- Update here: /questions/what-are-some-popular-javascript-testing-frameworks/en-US.mdx --> Some popular JavaScript t…

JS functionsCơ bản

Explain the difference between unit testing, integration testing, and end-to-end testing

<!-- Update here: /questions/explain-the-difference-between-unit-testing-integration-testing-and-end-to-end-testing/en-U…

JS functionsTrung bình

What are the different types of testing in software development?

<!-- Update here: /questions/what-are-the-different-types-of-testing-in-software-development/en-US.mdx --> In software d…

JS functionsTrung bình

How can you optimize network requests for better performance?

<!-- Update here: /questions/how-can-you-optimize-network-requests-for-better-performance/en-US.mdx --> To optimize netw…

JS functionsNâng cao

What are some tools that can be used to measure and analyze JavaScript performance?

<!-- Update here: /questions/what-are-some-tools-that-can-be-used-to-measure-and-analyze-javascript-performance/en-US.md…

JS functionsNâng cao

Explain the concept of caching and how it can be used to improve performance

Warm up question

<!-- Update here: /questions/explain-the-concept-of-caching-and-how-it-can-be-used-to-improve-performance/en-US.mdx -->…

JS functionsCơ bản

What are Web Workers and how can they be used to improve performance?

<!-- Update here: /questions/what-are-web-workers-and-how-can-they-be-used-to-improve-performance/en-US.mdx --> Web Work…

JS functionsNâng cao

Explain the concept of lazy loading and how it can improve performance

Warm up question

<!-- Update here: /questions/explain-the-concept-of-lazy-loading-and-how-it-can-improve-performance/en-US.mdx --> Lazy l…

JS functionsCơ bản

What are some techniques for reducing reflows and repaints?

<!-- Update here: /questions/what-are-some-techniques-for-reducing-reflows-and-repaints/en-US.mdx --> To reduce reflows…

JS functionsNâng cao

How can you optimize DOM manipulation for better performance?

<!-- Update here: /questions/how-can-you-optimize-dom-manipulation-for-better-performance/en-US.mdx --> To optimize DOM…

JS functionsNâng cao

Explain the concept of debouncing and throttling

Warm up question

<!-- Update here: /questions/explain-the-concept-of-debouncing-and-throttling/en-US.mdx --> Debouncing and throttling ar…

JS functionsCơ bản

What are some common performance bottlenecks in JavaScript applications?

<!-- Update here: /questions/what-are-some-common-performance-bottlenecks-in-javascript-applications/en-US.mdx --> Commo…

JS functionsTrung bình

How do Sets and Maps handle equality checks for objects?

Warm up question

<!-- Update here: /questions/how-do-sets-and-maps-handle-equality-checks-for-objects/en-US.mdx --> s and s in JavaScript…

JS functionsCơ bản

What is the difference between a Map object and a plain object in JavaScript?

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-a-map-object-and-a-plain-object-in-javascript/en-US.mdx -->…

JS functionsCơ bản

How do you convert a Set to an array in JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-convert-a-set-to-an-array-in-javascript/en-US.mdx --> To convert a to an array…

JS functionsCơ bản

What are the differences between Map/Set and WeakMap/WeakSet in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-map-set-and-weakmap-weakset/en-US.mdx --> The primary diff…

JS functionsCơ bản

What are Sets and Maps and how are they used?

Warm up question

<!-- Update here: /questions/what-are-sets-and-maps-and-how-are-they-used/en-US.mdx --> s and s are built-in JavaScript…

JS functionsCơ bản

How do currying and partial application differ from each other?

<!-- Update here: /questions/how-do-currying-and-partial-application-differ-from-each-other/en-US.mdx --> Currying trans…

JS functionsTrung bình

Provide some examples of how currying and partial application can be used

Warm up question

<!-- Update here: /questions/provide-some-examples-of-how-currying-and-partial-application-can-be-used/en-US.mdx --> Cur…

JS functionsCơ bản

What are the benefits of using currying and partial application?

<!-- Update here: /questions/what-are-the-benefits-of-using-currying-and-partial-application/en-US.mdx --> Currying tran…

JS functionsTrung bình

Explain the concept of partial application

<!-- Update here: /questions/explain-the-concept-of-partial-application/en-US.mdx --> Partial application is a technique…

JS functionsTrung bình

What is currying and how does it work?

<!-- Update here: /questions/what-is-currying-and-how-does-it-work/en-US.mdx --> Currying is a technique in functional p…

JS functionsTrung bình

Explain the concept of error propagation in JavaScript

<!-- Update here: /questions/explain-the-concept-of-error-propagation-in-javascript/en-US.mdx --> Error propagation in J…

JS functionsTrung bình

How can you create custom error objects?

<!-- Update here: /questions/how-can-you-create-custom-error-objects/en-US.mdx --> To create custom error objects in Jav…

JS functionsTrung bình

What is the purpose of the finally block?

Warm up question

<!-- Update here: /questions/what-is-the-purpose-of-the-finally-block/en-US.mdx --> The block in JavaScript is used to…

JS functionsCơ bản

How do you handle errors using try...catch blocks?

Warm up question

<!-- Update here: /questions/how-do-you-handle-errors-using-trycatch-blocks/en-US.mdx --> To handle errors using blocks…

JS functionsCơ bản

What are the different types of errors in JavaScript?

<!-- Update here: /questions/what-are-the-different-types-of-errors-in-javascript/en-US.mdx --> In JavaScript, there are…

JS functionsTrung bình

What do you think of CommonJS vs ESM?

Warm up question

<!-- Update here: /questions/what-do-you-think-of-amd-vs-commonjs/en-US.mdx --> JavaScript has evolved its module system…

JS functionsCơ bản

What are the metadata fields of a module?

<!-- Update here: /questions/what-are-the-metadata-fields-of-a-module/en-US.mdx --> Metadata fields of a module typicall…

JS functionsTrung bình

Explain the concept of tree shaking in module bundling

<!-- Update here: /questions/explain-the-concept-of-tree-shaking-in-module-bundling/en-US.mdx --> Tree shaking is a tech…

JS functionsTrung bình

What are the benefits of using a module bundler?

<!-- Update here: /questions/what-are-the-benefits-of-using-a-module-bundler/en-US.mdx --> Using a module bundler like W…

JS functionsTrung bình

How do you import and export modules in JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-import-and-export-modules-in-javascript/en-US.mdx --> In JavaScript, you can imp…

JS functionsCơ bản

Explain the differences between CommonJS modules and ES modules in JavaScript

<!-- Update here: /questions/explain-the-differences-between-commonjs-modules-and-es-modules/en-US.mdx --> In JavaScript…

JS functionsTrung bình

What are modules and why are they useful?

Warm up question

<!-- Update here: /questions/what-are-modules-and-why-are-they-useful/en-US.mdx --> Modules are reusable pieces of code…

JS functionsCơ bản

What are Progressive Web Applications (PWAs)?

<!-- Update here: /questions/what-are-progressive-web-applications-pwas/en-US.mdx --> Progressive Web Applications (PWAs…

JS functionsTrung bình

What are server-sent events?

<!-- Update here: /questions/what-are-server-sent-events/en-US.mdx --> [Server-sent events (SSE)](https://html.spec.what…

JS functionsNâng cao

How do you get the query string values of the current page in JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-get-the-query-string-values-of-the-current-page-in-javascript/en-US.mdx --> To g…

JS functionsCơ bản

How do you redirect to a new page in JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-redirect-to-a-new-page-in-javascript/en-US.mdx --> To redirect to a new page in…

JS functionsCơ bản

Difference between document load event and document DOMContentLoaded event?

<!-- Update here: /questions/difference-between-document-load-event-and-document-domcontentloaded-event/en-US.mdx --> Th…

JS functionsTrung bình

How do <iframe on a page communicate?

<!-- Update here: /questions/how-do-iframe-on-a-page-communicate/en-US.mdx --> elements on a page can communicate using…

JS functionsTrung bình

How do you use window.history API?

Warm up question

<!-- Update here: /questions/how-do-you-use-windowhistory-api/en-US.mdx --> The API allows you to manipulate the browse…

JS functionsCơ bản

How do you validate form elements using the Constraint Validation API?

<!-- Update here: /questions/how-do-you-validate-form-elements-using-the-constraint-validation-api/en-US.mdx --> The Con…

JS functionsNâng cao

What is the Intl namespace object for?

<!-- Update here: /questions/what-is-the-intl-namespace-object-for/en-US.mdx --> The namespace object in JavaScript is…

JS functionsTrung bình

How do you detect if JavaScript is disabled on a page?

<!-- Update here: /questions/how-do-you-detect-if-javascript-is-disabled-on-a-page/en-US.mdx --> To detect if JavaScript…

JS functionsTrung bình

What are JavaScript polyfills for?

<!-- Update here: /questions/what-are-javascript-polyfills-for/en-US.mdx --> Polyfills in JavaScript are pieces of code…

JS functionsNâng cao

Explain the concept of the Web Socket API

<!-- Update here: /questions/explain-the-concept-of-the-web-socket-api/en-US.mdx --> The WebSocket API provides a way to…

JS functionsTrung bình

What are workers in JavaScript used for?

<!-- Update here: /questions/what-are-workers-in-javascript-used-for/en-US.mdx --> Workers in JavaScript are background…

JS functionsNâng cao

Explain how JSONP works (and how it's not really Ajax)

<!-- Update here: /questions/explain-how-jsonp-works-and-how-its-not-really-ajax/en-US.mdx --> JSONP (JSON with Padding)…

JS functionsTrung bình

How do you abort a web request using AbortController in JavaScript?

<!-- Update here: /questions/how-do-you-abort-a-web-request-using-abortcontrollers/en-US.mdx --> is used to cancel ongo…

JS functionsTrung bình

What are the differences between XMLHttpRequest and fetch() in JavaScript and browsers?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-xmlhttprequest-and-fetch/en-US.mdx --> (XHR) and API are…

JS functionsCơ bản

What are the advantages and disadvantages of using AJAX?

Warm up question

<!-- Update here: /questions/what-are-the-advantages-and-disadvantages-of-using-ajax/en-US.mdx --> AJAX (Asynchronous Ja…

JS functionsCơ bản

Explain AJAX in as much detail as possible

Warm up question

<!-- Update here: /questions/explain-ajax-in-as-much-detail-as-possible/en-US.mdx --> AJAX (Asynchronous JavaScript and…

JS functionsCơ bản

What are the different ways to make an API call in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-different-ways-to-make-an-api-call-in-javascript/en-US.mdx --> In JavaScript,…

JS functionsCơ bản

How do you make an HTTP request using the Fetch API?

Warm up question

<!-- Update here: /questions/how-do-you-make-an-http-request-using-the-fetch-api/en-US.mdx --> To make an HTTP request u…

JS functionsCơ bản

Describe the difference between a cookie, sessionStorage and localStorage in browsers

Warm up question

<!-- Update here: /questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx --> All…

JS functionsCơ bản

What is the difference between the Window object and the Document object?

<!-- Update here: /questions/what-is-the-difference-between-the-window-object-and-the-document-object/en-US.mdx --> The…

JS functionsTrung bình

Describe the difference between <script, <script async and <script defer

Warm up question

<!-- Update here: /questions/describe-the-difference-between-script-async-and-script-defer/en-US.mdx --> All of these wa…

JS functionsCơ bản

How do you manipulate CSS styles using JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-manipulate-css-styles-using-javascript/en-US.mdx --> You can manipulate CSS styl…

JS functionsCơ bản

What is the difference between innerHTML and textContent?

<!-- Update here: /questions/what-is-the-difference-between-innerhtml-and-textcontent/en-US.mdx --> and are both prope…

JS functionsTrung bình

What is the difference between mouseenter and mouseover event in JavaScript and browsers?

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-mouseenter-and-mouseover-event/en-US.mdx --> The main differ…

JS functionsCơ bản

What is the difference between event.preventDefault() and event.stopPropagation()?

<!-- Update here: /questions/what-is-the-difference-between-eventpreventdefault-and-eventstoppropagation/en-US.mdx -->…

JS functionsTrung bình

How do you prevent the default behavior of an event?

Warm up question

<!-- Update here: /questions/how-do-you-prevent-the-default-behavior-of-an-event/en-US.mdx --> To prevent the default be…

JS functionsCơ bản

Explain event delegation in JavaScript

Warm up question

<!-- Update here: /questions/explain-event-delegation/en-US.mdx --> Event delegation is a technique in JavaScript where…

JS functionsCơ bản

Describe event capturing in JavaScript and browsers

Warm up question

<!-- Update here: /questions/describe-event-capturing/en-US.mdx --> Event capturing is a lesser-used counterpart to [eve…

JS functionsCơ bản

Describe event bubbling in JavaScript and browsers

Warm up question

<!-- Update here: /questions/describe-event-bubbling/en-US.mdx --> Event bubbling is a DOM event propagation mechanism w…

JS functionsCơ bản

Explain the event phases in a browser

<!-- Update here: /questions/explain-the-event-phases-in-a-browser/en-US.mdx --> In a browser, events go through three p…

JS functionsTrung bình

What are event listeners and how are they used?

Warm up question

<!-- Update here: /questions/what-are-event-listeners-and-how-are-they-used/en-US.mdx --> Event listeners are functions…

JS functionsCơ bản

How do you add, remove, and modify HTML elements using JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-add-remove-and-modify-html-elements-using-javascript/en-US.mdx --> To add, remov…

JS functionsCơ bản

Explain the difference between document.querySelector() and document.getElementById()

Warm up question

<!-- Update here: /questions/explain-the-difference-between-documentqueryselector-and-documentgetelementbyid/en-US.mdx -…

JS functionsCơ bản

What's the difference between an "attribute" and a "property" in the DOM?

<!-- Update here: /questions/whats-the-difference-between-an-attribute-and-a-property/en-US.mdx --> Attributes are defin…

JS functionsTrung bình

What is the DOM and how is it structured?

Warm up question

<!-- Update here: /questions/what-is-the-dom-and-how-is-it-structured/en-US.mdx --> The DOM, or Document Object Model, i…

JS functionsCơ bản

Explain the concept of this binding in event handlers

Warm up question

<!-- Update here: /questions/explain-the-concept-of-this-binding-in-event-handlers/en-US.mdx --> In JavaScript, the key…

JS functionsCơ bản

What are the common pitfalls of using the this keyword?

Warm up question

<!-- Update here: /questions/what-are-the-common-pitfalls-of-using-the-this-keyword/en-US.mdx --> The keyword in JavaSc…

JS functionsCơ bản

Explain the different ways the this keyword can be bound

<!-- Update here: /questions/explain-the-different-ways-the-this-keyword-can-be-bound/en-US.mdx --> The keyword in Java…

JS functionsTrung bình

Explain Function.prototype.bind in JavaScript

Warm up question

<!-- Update here: /questions/explain-function-prototype-bind/en-US.mdx --> is a method in JavaScript that allows you to…

JS functionsCơ bản

Explain how this works in JavaScript

Warm up question

<!-- Update here: /questions/explain-how-this-works-in-javascript/en-US.mdx --> There's no simple explanation for ; it i…

JS functionsCơ bản

Explain the difference between global scope, function scope, and block scope

Warm up question

<!-- Update here: /questions/explain-the-difference-between-global-scope-function-scope-and-block-scope/en-US.mdx --> Gl…

JS functionsCơ bản

What are the potential pitfalls of using closures?

<!-- Update here: /questions/what-are-the-potential-pitfalls-of-using-closures/en-US.mdx --> Closures can lead to memory…

JS functionsTrung bình

How can closures be used to create private variables?

Warm up question

<!-- Update here: /questions/how-can-closures-be-used-to-create-private-variables/en-US.mdx --> Closures in JavaScript c…

JS functionsCơ bản

Explain the concept of scope in JavaScript

Warm up question

<!-- Update here: /questions/explain-the-concept-of-scope-in-javascript/en-US.mdx --> In JavaScript, scope determines th…

JS functionsCơ bản

Explain the concept of lexical scoping

Warm up question

<!-- Update here: /questions/explain-the-concept-of-lexical-scoping/en-US.mdx --> Lexical scoping means that the scope o…

JS functionsCơ bản

What is a closure in JavaScript, and how/why would you use one?

<!-- Update here: /questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx --> In the book ["You Don't Know…

JS functionsTrung bình

Why might you want to create static class members in JavaScript?

<!-- Update here: /questions/why-you-might-want-to-create-static-class-members/en-US.mdx --> Static class members (prope…

JS functionsTrung bình

What advantage is there for using the JavaScript arrow syntax for a method in a constructor?

Warm up question

<!-- Update here: /questions/what-advantage-is-there-for-using-the-arrow-syntax-for-a-method-in-a-constructor/en-US.mdx…

JS functionsCơ bản

What are the differences between JavaScript ES2015 classes and ES5 function constructors?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-es6-class-and-es5-function-constructors/en-US.mdx --> ES20…

JS functionsCơ bản

How do you create a constructor function?

Warm up question

<!-- Update here: /questions/how-do-you-create-a-constructor-function/en-US.mdx --> To create a constructor function in…

JS functionsCơ bản

What is the purpose of the new keyword?

Warm up question

<!-- Update here: /questions/what-is-the-purpose-of-the-new-keyword/en-US.mdx --> The keyword in JavaScript is used to…

JS functionsCơ bản

Explain the concept of inheritance in ES2015 classes

Warm up question

<!-- Update here: /questions/explain-the-concept-of-inheritance-in-es2015-classes/en-US.mdx --> Inheritance in ES2015 cl…

JS functionsCơ bản

Explain the difference between classical inheritance and prototypal inheritance

Warm up question

<!-- Update here: /questions/explain-the-difference-between-classical-inheritance-and-prototypal-inheritance/en-US.mdx -…

JS functionsCơ bản

What is the prototype chain and how does it work?

<!-- Update here: /questions/what-is-the-prototype-chain-and-how-does-it-work/en-US.mdx --> The prototype chain is a mec…

JS functionsTrung bình

Explain how prototypal inheritance works in JavaScript

Warm up question

<!-- Update here: /questions/explain-how-prototypal-inheritance-works/en-US.mdx --> Prototypical inheritance in JavaScri…

JS functionsCơ bản

What is the difference between setTimeout(), setImmediate(), and process.nextTick()?

<!-- Update here: /questions/what-is-the-difference-between-settimeout-setimmediate-and-processnexttick/en-US.mdx --> s…

JS functionsTrung bình

Explain the concept of a microtask queue

<!-- Update here: /questions/explain-the-concept-of-a-microtask-queue/en-US.mdx --> The microtask queue is a queue of ta…

JS functionsTrung bình

How do you handle errors in asynchronous operations?

Warm up question

<!-- Update here: /questions/how-do-you-handle-errors-in-asynchronous-operations/en-US.mdx --> To handle errors in async…

JS functionsCơ bản

What is async/await and how does it simplify asynchronous code?

<!-- Update here: /questions/what-is-asyncawait-and-how-does-it-simplify-asynchronous-code/en-US.mdx --> is a modern sy…

JS functionsTrung bình

How is Promise.all() different from Promise.allSettled()?

<!-- Update here: /questions/how-is-promiseall-different-from-promiseallsettled/en-US.mdx --> and are both methods for…

JS functionsTrung bình

What is the use of Promise.all()

Warm up question

<!-- Update here: /questions/what-is-the-use-of-promiseall/en-US.mdx --> is a method in JavaScript that takes an array…

JS functionsCơ bản

What are the pros and cons of using Promises instead of callbacks in JavaScript?

<!-- Update here: /questions/what-are-the-pros-and-cons-of-using-promises-instead-of-callbacks/en-US.mdx --> Promises of…

JS functionsTrung bình

Explain the different states of a Promise

<!-- Update here: /questions/explain-the-different-states-of-a-promise/en-US.mdx --> A in JavaScript can be in one of t…

JS functionsTrung bình

What are Promises and how do they work?

Warm up question

<!-- Update here: /questions/what-are-promises-and-how-do-they-work/en-US.mdx --> Promises in JavaScript are objects tha…

JS functionsCơ bản

Explain the concept of a callback function in asynchronous operations

Warm up question

<!-- Update here: /questions/explain-the-concept-of-a-callback-function-in-asynchronous-operations/en-US.mdx --> A callb…

JS functionsCơ bản

Explain the difference between synchronous and asynchronous functions in JavaScript

Warm up question

<!-- Update here: /questions/explain-the-difference-between-synchronous-and-asynchronous-functions/en-US.mdx --> Synchro…

JS functionsCơ bản

What is the event loop in JavaScript runtimes?

Warm up question

<!-- Update here: /questions/what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue/en-US.mdx --> T…

JS functionsCơ bản

How do you reliably determine whether an object is empty?

Warm up question

<!-- Update here: /questions/how-do-you-reliably-determine-whether-an-object-is-empty/en-US.mdx --> To reliably determin…

JS functionsCơ bản

What are JavaScript object property flags and descriptors?

<!-- Update here: /questions/what-are-javascript-object-property-flags-and-descriptors/en-US.mdx --> In JavaScript, prop…

JS functionsNâng cao

What are JavaScript object getters and setters for?

<!-- Update here: /questions/what-are-javascript-object-getters-and-setters-for/en-US.mdx --> JavaScript object getters…

JS functionsTrung bình

What is Object.preventExtensions() for?

<!-- Update here: /questions/what-is-objectpreventextensions-for/en-US.mdx --> is a method in JavaScript that prevents…

JS functionsTrung bình

What is Object.seal() for?

<!-- Update here: /questions/what-is-objectseal-for/en-US.mdx --> is used to prevent new properties from being added to…

JS functionsTrung bình

What is Object.freeze() for?

<!-- Update here: /questions/what-is-objectfreeze-for/en-US.mdx --> is used to make an object immutable. Once an object…

JS functionsTrung bình

Explain the concept of destructuring assignment for objects and arrays

Warm up question

<!-- Update here: /questions/explain-the-concept-of-destructuring-assignment-for-objects-and-arrays/en-US.mdx --> Destru…

JS functionsCơ bản

Explain the difference between mutable and immutable objects in JavaScript

<!-- Update here: /questions/explain-the-difference-between-mutable-and-immutable-objects/en-US.mdx --> Mutable objects…

JS functionsTrung bình

How do you check if an object has a specific property?

Warm up question

<!-- Update here: /questions/how-do-you-check-if-an-object-has-a-specific-property/en-US.mdx --> To check if an object h…

JS functionsCơ bản

What are the advantages of using the spread operator with arrays and objects?

Warm up question

<!-- Update here: /questions/what-are-the-advantages-of-using-the-spread-operator-with-arrays-and-objects/en-US.mdx -->…

JS functionsCơ bản

Explain the difference between shallow copy and deep copy

Warm up question

<!-- Update here: /questions/explain-the-difference-between-shallow-copy-and-deep-copy/en-US.mdx --> A shallow copy dupl…

JS functionsCơ bản

What are the different ways to copy an object or an array?

Warm up question

<!-- Update here: /questions/what-are-the-different-ways-to-copy-an-object-or-an-array/en-US.mdx --> To copy an object o…

JS functionsCơ bản

How do you add, remove, and update elements in an array?

Warm up question

<!-- Update here: /questions/how-do-you-add-remove-and-update-elements-in-an-array/en-US.mdx --> To add elements to an a…

JS functionsCơ bản

What are the different methods for iterating over an array?

Warm up question

<!-- Update here: /questions/what-are-the-different-methods-for-iterating-over-an-array/en-US.mdx --> There are several…

JS functionsCơ bản

Explain the difference between dot notation and bracket notation for accessing object properties

Warm up question

<!-- Update here: /questions/explain-the-difference-between-dot-notation-and-bracket-notation-for-accessing-object-prope…

JS functionsCơ bản

What are the various ways to create objects in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-various-ways-to-create-objects-in-javascript/en-US.mdx --> Creating objects in…

JS functionsCơ bản

Explain why the following doesn't work as an IIFE: function foo(){}();. What needs to be changed to properly make it an IIFE?

<!-- Update here: /questions/explain-why-the-following-doesnt-work-as-an-iife-function-foo--what-needs-to-be-changed-to-…

JS functionsNâng cao

What are default parameters and how are they used?

Warm up question

<!-- Update here: /questions/what-are-default-parameters-and-how-are-they-used/en-US.mdx --> Default parameters in JavaS…

JS functionsCơ bản

What is recursion and how is it used in JavaScript?

Warm up question

<!-- Update here: /questions/what-is-recursion-and-how-is-it-used-in-javascript/en-US.mdx --> Recursion is a programming…

JS functionsCơ bản

What's a typical use case for anonymous functions in JavaScript?

<!-- Update here: /questions/whats-a-typical-use-case-for-anonymous-functions/en-US.mdx --> An anonymous function in Jav…

JS functionsTrung bình

What are callback functions and how are they used?

Warm up question

<!-- Update here: /questions/what-are-callback-functions-and-how-are-they-used/en-US.mdx --> A callback function is a fu…

JS functionsCơ bản

What is the definition of a higher-order function in JavaScript?

Warm up question

<!-- Update here: /questions/what-is-the-definition-of-a-higher-order-function/en-US.mdx --> A higher-order function is…

JS functionsCơ bản

Difference between: function Person(){}, const person = Person(), and const person = new Person() in JavaScript?

Warm up question

<!-- Update here: /questions/difference-between-function-person-var-person-person-and-var-person-new-person/en-US.mdx --…

JS functionsCơ bản

Can you offer a use case for the new arrow = function syntax?

Warm up question

<!-- Update here: /questions/can-you-offer-a-use-case-for-the-new-arrow-function-syntax-how-does-this-new-syntax-differ-…

JS functionsCơ bản

What's the difference between .call and .apply in JavaScript?

Warm up question

<!-- Update here: /questions/whats-the-difference-between-call-and-apply/en-US.mdx --> and are both used to invoke fun…

JS functionsCơ bản

Explain the concept of hoisting with regards to functions

Warm up question

<!-- Update here: /questions/explain-the-concept-of-hoisting-with-regards-to-functions/en-US.mdx --> Hoisting in JavaScr…

JS functionsCơ bản

What is the difference between a parameter and an argument?

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-a-parameter-and-an-argument/en-US.mdx --> A parameter is a v…

JS functionsCơ bản

Explain the differences on the usage of foo between function foo() {} and var foo = function() {} in JavaScript

Warm up question

<!-- Update here: /questions/explain-the-differences-on-the-usage-of-foo-between-function-foo-and-var-foo-function/en-US…

JS functionsCơ bản

What are iterators and generators in JavaScript and what are they used for?

<!-- Update here: /questions/what-are-iterators-and-generators-and-what-are-they-used-for/en-US.mdx --> In JavaScript, i…

JS functionsNâng cao

What are the benefits of using spread syntax in JavaScript and how is it different from rest syntax?

Warm up question

<!-- Update here: /questions/what-are-the-benefits-of-using-spread-syntax-and-how-is-it-different-from-rest-syntax/en-US…

JS functionsCơ bản

Explain the concept of the spread operator and its uses

Warm up question

<!-- Update here: /questions/explain-the-concept-of-the-spread-operator-and-its-uses/en-US.mdx --> The spread operator (…

JS functionsCơ bản

What are rest parameters and how are they used?

Warm up question

<!-- Update here: /questions/what-are-rest-parameters-and-how-are-they-used/en-US.mdx --> Rest parameters in JavaScript…

JS functionsCơ bản

What is the purpose of the switch statement?

Warm up question

<!-- Update here: /questions/what-is-the-purpose-of-the-switch-statement/en-US.mdx --> The statement is used to execute…

JS functionsCơ bản

How do you access the index of an element in an array during iteration?

Warm up question

<!-- Update here: /questions/how-do-you-access-the-index-of-an-element-in-an-array-during-iteration/en-US.mdx --> To acc…

JS functionsCơ bản

What is the ternary operator and how is it used?

Warm up question

<!-- Update here: /questions/what-is-the-ternary-operator-and-how-is-it-used/en-US.mdx --> The ternary operator is a sho…

JS functionsCơ bản

What is the purpose of the break and continue statements?

Warm up question

<!-- Update here: /questions/what-is-the-purpose-of-the-break-and-continue-statements/en-US.mdx --> The statement is us…

JS functionsCơ bản

What language constructs do you use for iterating over object properties and array items in JavaScript?

Warm up question

<!-- Update here: /questions/what-language-constructs-do-you-use-for-iterating-over-object-properties-and-array-items/en…

JS functionsCơ bản

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

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-double-equal-and-triple-equal/en-US.mdx --> is the abstract…

JS functionsCơ bản

How can you avoid problems related to hoisting?

Warm up question

<!-- Update here: /questions/how-can-you-avoid-problems-related-to-hoisting/en-US.mdx --> To avoid problems related to h…

JS functionsCơ bản

What are the potential issues caused by hoisting?

<!-- Update here: /questions/what-are-the-potential-issues-caused-by-hoisting/en-US.mdx --> Hoisting can lead to unexpec…

JS functionsTrung bình

How does hoisting affect function declarations and expressions?

<!-- Update here: /questions/how-does-hoisting-affect-function-declarations-and-expressions/en-US.mdx --> Hoisting in Ja…

JS functionsNâng cao

Explain the difference in hoisting between var, let, and const

Warm up question

<!-- Update here: /questions/explain-the-difference-in-hoisting-between-var-let-and-const/en-US.mdx --> declarations ar…

JS functionsCơ bản

Explain the concept of "hoisting" in JavaScript

Warm up question

<!-- Update here: /questions/explain-hoisting/en-US.mdx --> Hoisting is a JavaScript mechanism where variable and functi…

JS functionsCơ bản

What are proxies in JavaScript used for?

<!-- Update here: /questions/what-are-proxies-in-javascript-used-for/en-US.mdx --> In JavaScript, a proxy is an object t…

JS functionsNâng cao

What are Symbols used for in JavaScript?

<!-- Update here: /questions/what-are-symbols-used-for/en-US.mdx --> s in JavaScript are a new primitive data type intro…

JS functionsTrung bình

What is the spread operator and how is it used?

Warm up question

<!-- Update here: /questions/what-is-the-spread-operator-and-how-is-it-used/en-US.mdx --> The spread operator, represent…

JS functionsCơ bản

Explain the concept of tagged templates

<!-- Update here: /questions/explain-the-concept-of-tagged-templates/en-US.mdx --> Tagged templates in JavaScript allow…

JS functionsTrung bình

What are template literals and how are they used?

Warm up question

<!-- Update here: /questions/what-are-template-literals-and-how-are-they-used/en-US.mdx --> Template literals are a feat…

JS functionsCơ bản

How do you convert a string to a number in JavaScript?

Warm up question

<!-- Update here: /questions/how-do-you-convert-a-string-to-a-number-in-javascript/en-US.mdx --> In JavaScript, you can…

JS functionsCơ bản

Why is it, in general, a good idea to leave the global JavaScript scope of a website as-is and never touch it?

<!-- Update here: /questions/why-is-it-in-general-a-good-idea-to-leave-the-global-scope-of-a-website-as-is-and-never-tou…

JS functionsTrung bình

What are the differences between JavaScript variables created using let, var or const?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-variables-created-using-let-var-or-const/en-US.mdx --> In…

JS functionsCơ bản

What's the difference between a JavaScript variable that is: null, undefined or undeclared?

Warm up question

<!-- Update here: /questions/whats-the-difference-between-a-variable-that-is-null-undefined-or-undeclared-how-would-you-…

JS functionsCơ bản

How do you check the data type of a variable?

Warm up question

<!-- Update here: /questions/how-do-you-check-the-data-type-of-a-variable/en-US.mdx --> To check the data type of a vari…

JS functionsCơ bản

What are the various data types in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-various-data-types-in-javascript/en-US.mdx --> In JavaScript, data types can b…

JS functionsCơ bản

How does JavaScript garbage collection work?

<!-- Update here: /questions/how-does-javascript-garbage-collection-work/en-US.mdx --> Garbage collection in JavaScript…

JS functionsNâng cao

What are workers in JavaScript used for?

<!-- Update here: /questions/what-are-workers-in-javascript-used-for/en-US.mdx --> Workers in JavaScript are background…

JS functionsNâng cao

What tools and techniques do you use for debugging JavaScript code?

<!-- Update here: /questions/what-tools-and-techniques-do-you-use-for-debugging-javascript-code/en-US.mdx --> Some of th…

JS functionsTrung bình

What are proxies in JavaScript used for?

<!-- Update here: /questions/what-are-proxies-in-javascript-used-for/en-US.mdx --> In JavaScript, a proxy is an object t…

JS functionsNâng cao

What are JavaScript object getters and setters for?

<!-- Update here: /questions/what-are-javascript-object-getters-and-setters-for/en-US.mdx --> JavaScript object getters…

JS functionsTrung bình

What are JavaScript object property flags and descriptors?

<!-- Update here: /questions/what-are-javascript-object-property-flags-and-descriptors/en-US.mdx --> In JavaScript, prop…

JS functionsNâng cao

What are server-sent events?

<!-- Update here: /questions/what-are-server-sent-events/en-US.mdx --> [Server-sent events (SSE)](https://html.spec.what…

JS functionsNâng cao

What are Symbols used for in JavaScript?

<!-- Update here: /questions/what-are-symbols-used-for/en-US.mdx --> s in JavaScript are a new primitive data type intro…

JS functionsTrung bình

Why might you want to create static class members in JavaScript?

<!-- Update here: /questions/why-you-might-want-to-create-static-class-members/en-US.mdx --> Static class members (prope…

JS functionsTrung bình

What are the differences between Map/Set and WeakMap/WeakSet in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-map-set-and-weakmap-weakset/en-US.mdx --> The primary diff…

JS functionsCơ bản

What is the difference between a Map object and a plain object in JavaScript?

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-a-map-object-and-a-plain-object-in-javascript/en-US.mdx -->…

JS functionsCơ bản

Explain the difference between mutable and immutable objects in JavaScript

<!-- Update here: /questions/explain-the-difference-between-mutable-and-immutable-objects/en-US.mdx --> Mutable objects…

JS functionsTrung bình

What are iterators and generators in JavaScript and what are they used for?

<!-- Update here: /questions/what-are-iterators-and-generators-and-what-are-they-used-for/en-US.mdx --> In JavaScript, i…

JS functionsNâng cao

What are the benefits of using spread syntax in JavaScript and how is it different from rest syntax?

Warm up question

<!-- Update here: /questions/what-are-the-benefits-of-using-spread-syntax-and-how-is-it-different-from-rest-syntax/en-US…

JS functionsCơ bản

What language constructs do you use for iterating over object properties and array items in JavaScript?

Warm up question

<!-- Update here: /questions/what-language-constructs-do-you-use-for-iterating-over-object-properties-and-array-items/en…

JS functionsCơ bản

What are the various data types in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-various-data-types-in-javascript/en-US.mdx --> In JavaScript, data types can b…

JS functionsCơ bản

Explain the differences between CommonJS modules and ES modules in JavaScript

<!-- Update here: /questions/explain-the-differences-between-commonjs-modules-and-es-modules/en-US.mdx --> In JavaScript…

JS functionsTrung bình

Why is it, in general, a good idea to leave the global JavaScript scope of a website as-is and never touch it?

<!-- Update here: /questions/why-is-it-in-general-a-good-idea-to-leave-the-global-scope-of-a-website-as-is-and-never-tou…

JS functionsTrung bình

Why is extending built-in JavaScript objects not a good idea?

<!-- Update here: /questions/why-is-extending-built-in-javascript-objects-not-a-good-idea/en-US.mdx --> Extending a buil…

JS functionsTrung bình

What are JavaScript polyfills for?

<!-- Update here: /questions/what-are-javascript-polyfills-for/en-US.mdx --> Polyfills in JavaScript are pieces of code…

JS functionsNâng cao

How do you abort a web request using AbortController in JavaScript?

<!-- Update here: /questions/how-do-you-abort-a-web-request-using-abortcontrollers/en-US.mdx --> is used to cancel ongo…

JS functionsTrung bình

What are the differences between XMLHttpRequest and fetch() in JavaScript and browsers?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-xmlhttprequest-and-fetch/en-US.mdx --> (XHR) and API are…

JS functionsCơ bản

What are the advantages and disadvantages of using AJAX?

Warm up question

<!-- Update here: /questions/what-are-the-advantages-and-disadvantages-of-using-ajax/en-US.mdx --> AJAX (Asynchronous Ja…

JS functionsCơ bản

Explain AJAX in as much detail as possible

Warm up question

<!-- Update here: /questions/explain-ajax-in-as-much-detail-as-possible/en-US.mdx --> AJAX (Asynchronous JavaScript and…

JS functionsCơ bản

What are the pros and cons of using Promises instead of callbacks in JavaScript?

<!-- Update here: /questions/what-are-the-pros-and-cons-of-using-promises-instead-of-callbacks/en-US.mdx --> Promises of…

JS functionsTrung bình

Explain the difference between synchronous and asynchronous functions in JavaScript

Warm up question

<!-- Update here: /questions/explain-the-difference-between-synchronous-and-asynchronous-functions/en-US.mdx --> Synchro…

JS functionsCơ bản

What is 'use strict'; (strict mode) in JavaScript for?

<!-- Update here: /questions/what-is-use-strict-what-are-the-advantages-and-disadvantages-to-using-it/en-US.mdx --> is…

JS functionsNâng cao

What is the difference between mouseenter and mouseover event in JavaScript and browsers?

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-mouseenter-and-mouseover-event/en-US.mdx --> The main differ…

JS functionsCơ bản

Describe event capturing in JavaScript and browsers

Warm up question

<!-- Update here: /questions/describe-event-capturing/en-US.mdx --> Event capturing is a lesser-used counterpart to [eve…

JS functionsCơ bản

Describe event bubbling in JavaScript and browsers

Warm up question

<!-- Update here: /questions/describe-event-bubbling/en-US.mdx --> Event bubbling is a DOM event propagation mechanism w…

JS functionsCơ bản

What are the differences between JavaScript ES2015 classes and ES5 function constructors?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-es6-class-and-es5-function-constructors/en-US.mdx --> ES20…

JS functionsCơ bản

What is the definition of a higher-order function in JavaScript?

Warm up question

<!-- Update here: /questions/what-is-the-definition-of-a-higher-order-function/en-US.mdx --> A higher-order function is…

JS functionsCơ bản

What is a closure in JavaScript, and how/why would you use one?

<!-- Update here: /questions/what-is-a-closure-and-how-why-would-you-use-one/en-US.mdx --> In the book ["You Don't Know…

JS functionsTrung bình

What are the various ways to create objects in JavaScript?

Warm up question

<!-- Update here: /questions/what-are-the-various-ways-to-create-objects-in-javascript/en-US.mdx --> Creating objects in…

JS functionsCơ bản

What's a typical use case for anonymous functions in JavaScript?

<!-- Update here: /questions/whats-a-typical-use-case-for-anonymous-functions/en-US.mdx --> An anonymous function in Jav…

JS functionsTrung bình

Explain the differences on the usage of foo between function foo() {} and var foo = function() {} in JavaScript

Warm up question

<!-- Update here: /questions/explain-the-differences-on-the-usage-of-foo-between-function-foo-and-var-foo-function/en-US…

JS functionsCơ bản

Difference between: function Person(){}, const person = Person(), and const person = new Person() in JavaScript?

Warm up question

<!-- Update here: /questions/difference-between-function-person-var-person-person-and-var-person-new-person/en-US.mdx --…

JS functionsCơ bản

Explain how prototypal inheritance works in JavaScript

Warm up question

<!-- Update here: /questions/explain-how-prototypal-inheritance-works/en-US.mdx --> Prototypical inheritance in JavaScri…

JS functionsCơ bản

What advantage is there for using the JavaScript arrow syntax for a method in a constructor?

Warm up question

<!-- Update here: /questions/what-advantage-is-there-for-using-the-arrow-syntax-for-a-method-in-a-constructor/en-US.mdx…

JS functionsCơ bản

Explain Function.prototype.bind in JavaScript

Warm up question

<!-- Update here: /questions/explain-function-prototype-bind/en-US.mdx --> is a method in JavaScript that allows you to…

JS functionsCơ bản

What's the difference between .call and .apply in JavaScript?

Warm up question

<!-- Update here: /questions/whats-the-difference-between-call-and-apply/en-US.mdx --> and are both used to invoke fun…

JS functionsCơ bản

What's the difference between a JavaScript variable that is: null, undefined or undeclared?

Warm up question

<!-- Update here: /questions/whats-the-difference-between-a-variable-that-is-null-undefined-or-undeclared-how-would-you-…

JS functionsCơ bản

Describe the difference between <script, <script async and <script defer

Warm up question

<!-- Update here: /questions/describe-the-difference-between-script-async-and-script-defer/en-US.mdx --> All of these wa…

JS functionsCơ bản

Describe the difference between a cookie, sessionStorage and localStorage in browsers

Warm up question

<!-- Update here: /questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx --> All…

JS functionsCơ bản

Explain how this works in JavaScript

Warm up question

<!-- Update here: /questions/explain-how-this-works-in-javascript/en-US.mdx --> There's no simple explanation for ; it i…

JS functionsCơ bản

Explain event delegation in JavaScript

Warm up question

<!-- Update here: /questions/explain-event-delegation/en-US.mdx --> Event delegation is a technique in JavaScript where…

JS functionsCơ bản

What is the event loop in JavaScript runtimes?

Warm up question

<!-- Update here: /questions/what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue/en-US.mdx --> T…

JS functionsCơ bản

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

Warm up question

<!-- Update here: /questions/what-is-the-difference-between-double-equal-and-triple-equal/en-US.mdx --> is the abstract…

JS functionsCơ bản

What are the differences between JavaScript variables created using let, var or const?

Warm up question

<!-- Update here: /questions/what-are-the-differences-between-variables-created-using-let-var-or-const/en-US.mdx --> In…

JS functionsCơ bản

Explain the concept of "hoisting" in JavaScript

Warm up question

<!-- Update here: /questions/explain-hoisting/en-US.mdx --> Hoisting is a JavaScript mechanism where variable and functi…

JS functionsCơ bản