Creating Promises in ES6

creating promises and resolving/rejecting them using the 'resolve' and 'reject' keywords

Consider the following code:

Get hands-on with 1400+ tech skills courses.