Advice Use Async functions instead of this. Syntax promise .then(value => { /* fulfillment */ }) .catch(error => { /* rejection */ });