JS Coding Questions Logo
JS Coding Questions
#62💼 Interview

What are the main rules of promise

Advertisement

728x90

A promise must follow a specific set of rules:

1. A promise is an object that supplies a standard-compliant .then() method

2. A pending promise may transition into either fulfilled or rejected state

3. A fulfilled or rejected promise is settled and it must not transition into any other state.

4. Once a promise is settled, the value must not change.

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 63

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
62of476