What does a Promise represent in JavaScript?
Question 1 of 5
Review JavaScript essentials including async code, closures, modules, DOM, and performance.
Frontend · About 3 minutes
Question 1 of 5
Review all 5 questions at your own pace. Open each answer to see the correct response and a concise explanation of the concept.
Topics covered
Correct answer
A future async result
Promises represent asynchronous work that may resolve or reject later.
Correct answer
A function retaining access to its outer scope
Closures let functions use variables from the scope where they were created.
Correct answer
let
let and const are block-scoped, while var is function-scoped.
Correct answer
Event bubbling
Event delegation attaches one handler to a parent and handles events bubbled from children.
Correct answer
Long-running JavaScript on the main thread
Heavy synchronous JavaScript prevents the browser from responding quickly to input.
Need a teammate, not a test?