Message from JavaScript discussions

March 2019

— Just one more silly doubt

— 

For the first promise it didn't return it and still used the result but he returned the second promise to use the result

— In line 1 and 6

— RecipeID is a promise
getRecipe is a function that RETURNS a promise

— You can't .then unless you have the promise

— So it must be returned on line 6

— Otherwise calling the function creates a promise you can't wait for

— And if you can't wait for an ajax call, you can't get the results either

— Ohhh thanks i got it

— What does an uncaught error in promise mean?

— It's showing that the error is in my html

— Hey