How to access the value of a promise?

Posted by Editorial Staff | Updated on

Want to access the value of a promise? This example I find self-explanatory. Notice how await waits for the result and so you miss the Promise being returned.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers