What's A Promise In JavaScript In 31 Seconds

Channel: Code Ryan Published: 2022-08-22 83 words Source: auto_caption

Transcript

a promise is a representation for a future value it's represented as just a javascript object and it has three different states fulfilled meaning the value has successfully returned to the promise rejected meaning there was some error when trying to get the value so like a network request it failed and the promise is now rejected and then pending the premise hasn't resolved with a value nor has it rejected it is still going to get the value in performing that task