/** * Promises - Challenge * Create a promise that returns some user data and throws an error when not found. * Log the user data when listening to the promise as well as log the error. * * Docs - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise */
1
2
3
4
5
6
7
8
9
10
/**
* Promises - Challenge
* Create a promise that returns some user data and throws an error when not found.
* Log the user data when listening to the promise as well as log the error.