Your videos are extremely well explained and contain quality content. However, your channel still doesn't have the number of views and followers it deserves to have. With this comment, first of all, I want to thank you for the knowledge you share with us and I also want to suggest an example of how to get more followers and viewers. I recommend that you create a bigger project, a realistic project that young developers face. May be divided into several small sections and unite to a playlist, or record it in its entirety for a couple of hours. An example project would be a CRUD application with ECMAScript 6+ standard. I hope that you will do something like that for your viewers. Have a nice day :)
Eventually I will create full courses. It has been my intention for a long time to do that either on here or Udemy or SkillShare or BitDegree or some other place. I have been approached by several online schools to create courses. It's just a matter having the time. These videos I can do in a day as I have the time. Full courses take a long time to plan, develop, record and edit. I do these videos in my spare time on top of my full-time job.
Greetings from Bulgaria. Thank you (perhaps 5ht time in different comments) for your time and efforts to put those so valuable tutorials. One question please, if you have time - what about the regular try catch blocks inside the async funct. Are they not applicable here or this is just more appropriate (or should I say professional) way of coding ??
You can use the standard .then() method with catch() or try catch with await or a combination. As long as you understand how the different ways work feel free to use any approach.
Thanks , await makes more sense now. What if you just wrap everything inside the async function with try {}catch{} ? Would that work the same as the handleErr function ?
Thanks Steve! One question though; is it possible to return the data from function f in your example instead of logging it to console ? Trying to return "data" still returned a promised. Is there a way around this ?
I need to extract a price from an cryptocurrency exchange url address. Using a fetch request and getting a json response (crypto symbol and price) how can I take advantage using async/await? I need only the price data. thanks
Using or not using async / await has zero impact on how you get to specific values in the data. With it, like I show in the video, you are passing the value back from the fetch().then().then( ) to a variable. Without it you just use the data inside the second then( ) function.
The first one checks for the existence of a property called code inside the data object. The second checks for the value of that property. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OLXyquuM05Q.html
Steve Griffith thank you very much sir . i was so consumed with this async stuff that i literally forgot and didn't pay attention to the basics 😅. im dumbfounded right now. thanks to your tutorial im on the clear now .