Hey does anyone know why my code below doesn’t return answer to the user parameter, in my then() statement. It only runs through getUser and never follows onto the .then() or .catch(). I’ve console logged and answer is defined appropriately.
Also what is the point or difference with util.promisify, as opposed to creating the promise with async/await? Is it just the original way in which node integrated a method for a promise and we’re learning legacy code or is there a specific difference that i’m missing?
Here’s my code: