Helari Sosi6,166 Points
In this solution you have two options(one is right). Two most used methods -
then() & catch().
.then() - method returns a Promise.
.catch() - method returns a Promise and deals with rejected cases only. Handling errors.
Hope it helps.