Practical - Js and Ts Basics Flashcards
1
Q
What is a Promise in Js?
A
A Promise is an object representing the eventual completion or failure of an asynchronous operation.
2
Q
What is fetch() in Js?
A
- The Fetch API provides an interface for fetching resources.
- fetch() returns a Promise that resolves to a Response object.