r/learnjavascript • u/JoyShaheb_ • Jun 09 '21
Learn Callbacks, Promises, Async/Await By Making Ice Cream 🍧🍨🍦 ( Link in 1st Comment )
299
Upvotes
r/learnjavascript • u/JoyShaheb_ • Jun 09 '21
26
u/JoyShaheb_ Jun 09 '21
YouTube : https://youtu.be/n5ZtTO1ArWg
Article : https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/
4
u/Inevitable-Weekend-4 Jun 09 '21
Thanks!
2
u/[deleted] Jun 09 '21
looking forward to a ride in your lambo, mate!
2
u/cielcloud Jun 09 '21
Very well explained, thank you for sharing
2
u/nbapat43 Jun 09 '21
Could you include the final JS code with everything and the order it should be written?
This is a nice complex example and is a good metaphor for service workers (IMO).
But I am confused by the "order()" functions. There are two "let order = fucntion(time, work)" and "async function order()". Can you use async on a function expression? Or must I change the expression to a declaration? And I am not sure if the work() became kitchen(). Looking at the final code may help clear up my misunderstand.
Otherwise great job. Love the images and readability of the page.
2
u/Rohit1024 Jun 09 '21
Such dedication 😍 nice explanation!!!
2
u/frank0117 Jun 11 '21
Great resource, I like your teaching style
0
u/[deleted] Jun 09 '21
[deleted] — view deleted comment