JSFiddle - React, Tailwind, and code Playground
by prozoroff
JavaScript
var a = new Promise(function(res, rej){
res(3)
}).then(function(r){
return r + 4;
})
a.then(alert)
by prozoroff
var a = new Promise(function(res, rej){
res(3)
}).then(function(r){
return r + 4;
})
a.then(alert)