Let’s look at an example
Here we have a basic promise, for which we know it will be resolved, as
1 === 1 is true and we can display the result. But if we change the condition to
1 !== 1, the promise becomes rejected.