const resolve1 = new Promise((resolve, reject) => {
resolve('é pra já')
})
const resolve2 = Promise.resolve(''é pra já'')
const reject1 = new Promise((resolve, reject) => {
reject('nanãninanão')
})
const reject2 = Promise.reject('nanãninanão')
function promiseRandom1 (str) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve(str)
}, Math.random() * 5000)
})
}