JavaScript Promises and Callbacks Questions and Answers
@qs_by_qset
Created this 8 months ago
Less than 10 submissions
About
Content
Stop reading
1. What is a promise in JavaScript?
2. How do you create a promise?
3. What is the difference between a resolved promise and a rejected promise?
4. What is the then() method used for?
5. What is the catch() method used for?
6. What is the finally() method used for?
7. What is the difference between a callback and a promise?
8. When should you use a promise instead of a callback?
9. What are the advantages of using promises?
10. What are the limitations of using promises?
11. Can you use promises with AJAX requests?
12. What is the difference between a synchronous and an asynchronous function?
13. What is the event loop in JavaScript?
14. What is the difference between a callback and a callback queue?
15. What is the difference between a microtask and a macrotask?
16. What is the difference between a promise and a generator?
17. What is the difference between a promise and an observable?
18. What is the difference between a promise and a future?
19. What is the difference between a promise and a deferred?
20. What is the difference between a promise and a when?