😂😂
When you promise someone
A promise is an alternate way of doing asynchronous functions. It either "resolves" or "rejects". Instead of using callbacks like: funcAsync(arg1, arg2, function (err, res) { if(err) console.log(err); console.log(res); } You can use functions that have a promise API like: funcAsync(arg1, arg2) .then(res => console.log(res)) .catch(err => console.log(err))
Обсуждают сегодня