Sobes.tech
Назад к вопросам
Middle+
3

Explain the behavior of the following JavaScript Promise code and what will be logged to the console: ```javascript let promise = new Promise((resolve, reject) => { resolve("ok"); }) promise .then(result => `${result} one`) .then(result => `${result} two`) .then(result => {return new Error('error')}) .finally((result) => console.log('finally', result)) .catch(err => console.error(err.message)) ```

Компании, где спрашивали
РунитиРунити