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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly