June 25, 2020
  • 3:12 pm Nguyên nhân và cách điều trị gai gót chân
  • 3:01 pm Tạo Bóng đổ trong Corel – Cách đổ bóng Drop Shadow trong CorelDraw
  • 2:48 pm DO/DON'T khi chọn trang phục thể thao | Workout #101 ♡ Hana Giang Anh
  • 2:34 pm Hướng dẫn khôi phục toàn bộ tin nhắn đã xóa trên iPhone một cách dễ dàng
  • 2:24 pm JavaScript Promises In 10 Minutes



ES6 came with many new features, but one of the best features was the official introduction of Promises. Promises allow you to write clean non-callback-centric code without ever having to worry about callback hell. Even if you never write your own promise, knowing how they work is incredibly important, since many newer parts of the JavaScript API use promises instead of callbacks. Checkout the full video to learn how to define and use promises.

Code From This Video:

Twitter:

GitHub:

CodePen:

#JavaScript #Promises #WebDevelopment

Nguồn: https://alimentproteine.com/

Xem thêm bài viết khác: https://alimentproteine.com/cong-nghe/

admin

RELATED ARTICLES

46 COMMENTS

  1. Web Dev Simplified Posted on June 25, 2020 at 2:24 pm

    If you enjoy promises make sure to checkout Async/Await.
    https://youtu.be/V_Kr9OSfDeU

    Reply
  2. Christopher Clemmons Posted on June 25, 2020 at 2:24 pm

    Thank you for getting straight to the point. Im glad you used only the resources needed for learning this topic. Well done.

    Reply
  3. Anish Joshi Posted on June 25, 2020 at 2:24 pm

    love from nepal

    Reply
  4. R D Posted on June 25, 2020 at 2:24 pm

    Great tutorial. So concise, Subscribed.

    Reply
  5. Cyborg girl Posted on June 25, 2020 at 2:24 pm

    Hey , Is it possible to make promise functions without using the arrow method

    Reply
  6. moiz khalid Posted on June 25, 2020 at 2:24 pm

    Promise are object or function?

    Reply
  7. Michael Tandy Posted on June 25, 2020 at 2:24 pm

    Simple clear and concise, thank you Kyle very helpful!

    Reply
  8. Lewis R Posted on June 25, 2020 at 2:24 pm

    You forgot the semicolons.

    Reply
  9. Joshua Michau Posted on June 25, 2020 at 2:24 pm

    too fast in the beginning.

    Reply
  10. DARKINS Posted on June 25, 2020 at 2:24 pm

    I myself do not really understand English, and before this video I watched a lot of videos in Russian on the subject of Promises but I didn’t understand anything, but from your video everything is clear to the last detail! I'm surprised thank you

    Reply
  11. Ritik Raj Posted on June 25, 2020 at 2:24 pm

    Thanks, it was great you kept your promise you made me understand it

    Reply
  12. kumar anand Posted on June 25, 2020 at 2:24 pm

    brother what is is "message" here can you elaborate this one

    Reply
  13. Kyle Manley Posted on June 25, 2020 at 2:24 pm

    Thank you so much for this tutorial, I will reccomend this to my friends, love the Promise.all example, really helped me out making a bitcoin return on investment calculator with AJAX JSON and Promises!

    Reply
  14. Malyaban Bal Posted on June 25, 2020 at 2:24 pm

    great explanation!

    Reply
  15. Magda Pie Posted on June 25, 2020 at 2:24 pm

    you remind me of the main character form the tv series Kyle XY.

    Reply
  16. Ranjan Rnj Posted on June 25, 2020 at 2:24 pm

    Thank you for this "Best class video"🔥🔥🔥

    Reply
  17. Frankowski Posted on June 25, 2020 at 2:24 pm

    Well explained. Thanks.

    Reply
  18. Grant Walker Posted on June 25, 2020 at 2:24 pm

    Check out this quick 2min read on the States and Fates of Promises. I find its terminology really clear,
    https://github.com/domenic/promises-unwrapping/blob/master/docs/states-and-fates.md

    Reply
  19. Elijah Lance C Posted on June 25, 2020 at 2:24 pm

    Thank you so much for this

    Reply
  20. Kaleshe Alleyne-Vassel Posted on June 25, 2020 at 2:24 pm

    Wow what a great video. Broke it down just how I needed, thanks 😊

    Reply
  21. Joseph Livengood Posted on June 25, 2020 at 2:24 pm

    I noticed that you included the () on the arrow function when could have left then off like this….
    then(collection => console.log(collection));

    Reply
  22. Abhilash Telaganeedi Posted on June 25, 2020 at 2:24 pm

    best video ever on Promises. Can you explain when to use Observable and when to use Promises?

    Reply
  23. AnimateThatMC Posted on June 25, 2020 at 2:24 pm

    One of the best explained videos I’ve watched. Thanks a lot it helped tremendously!!

    Reply
  24. Krishna Kompalli Posted on June 25, 2020 at 2:24 pm

    The best video on Promises…!

    Reply
  25. Senthil Kumaran Posted on June 25, 2020 at 2:24 pm

    Quick implementation👍👍

    Reply
  26. Lim Bryan Posted on June 25, 2020 at 2:24 pm

    Great explaination!

    Reply
  27. adir iphone Posted on June 25, 2020 at 2:24 pm

    wow man thank you very much you really helped me to understand this stuff, amazing!

    Reply
  28. Irakli008 Posted on June 25, 2020 at 2:24 pm

    I have a really dumb question. How do you run your JavaScript file in the Chrome console? I can see the 'index.html' part shown at the top, and I guess it's like a localhost thing, but in general what's the standard way of running JavaScript files and seeing the output in the Console?

    Reply
  29. Kundan Posted on June 25, 2020 at 2:24 pm

    Are you using a typewriter?
    How old is your keyboard?

    Love the sound!

    Reply
  30. ALI AkBaR Posted on June 25, 2020 at 2:24 pm

    This is same like TRY, CATCH and THROW

    Reply
  31. Md Tahazzot Posted on June 25, 2020 at 2:24 pm

    It's not so much hard as I was think 🙂 so simple heh

    Reply
  32. Md Tahazzot Posted on June 25, 2020 at 2:24 pm

    5:01 starts the scared part Uhhhwww

    Reply
  33. alejandro torres Posted on June 25, 2020 at 2:24 pm

    You are an excellent teacher. And %99.9 of people can't explain how to make toast in a simple manner either

    Reply
  34. Alex Yepes Posted on June 25, 2020 at 2:24 pm

    Thanks so much, best tutorial ever, new subscriber here

    Reply
  35. Chang Liu Posted on June 25, 2020 at 2:24 pm

    As a female programmer, I like this video:P haha

    Reply
  36. Yanky Kalifornia Posted on June 25, 2020 at 2:24 pm

    Great video. thanks

    Reply
  37. 一本のうんち Posted on June 25, 2020 at 2:24 pm

    effin hate javascript. everything's confusing af billions of keywords with no explanation whether its a keyword or custom object/function, passing functions into functions, callback hell.
    multithreading in c makes more sense than async js… lol the synthax in js is just soo bloated and all over the place with no consistency. i can get by in any programming language just by using common patterns/coding practices and looking at documentation, with js it feels like after reading documentation i have try the stuff billions of times till i get it working how it's supposed to.
    thank you for the clear explanation, sorry for the rant.

    Reply
  38. Ian Rust Posted on June 25, 2020 at 2:24 pm

    you need to demo an asynchronous call, the promises you used always resolve immediately, they're seemingly indistinct from normal functions. where is the blocking behavior, how does it work?

    Reply
  39. Richard Cross Posted on June 25, 2020 at 2:24 pm

    Semicolons dude semicolons. Seriously they might seem frivolous, but believe me they save your sanity!

    Reply
  40. sandhya j Posted on June 25, 2020 at 2:24 pm

    Very well explained! Thank you

    Reply
  41. Aditya Ranjan Posted on June 25, 2020 at 2:24 pm

    okay !!this is something which defines this youtube channel
    extremely simplified
    thanks buddy 😊

    Reply
  42. Alex Darby Posted on June 25, 2020 at 2:24 pm

    Use RxJS intead, much more cleaner and powerful.

    Reply
  43. Александр Сербинов Posted on June 25, 2020 at 2:24 pm

    perfect!

    Reply
  44. Aly Drame Posted on June 25, 2020 at 2:24 pm

    Finally, i was able to understand Promises…It took me whole 2 day to understand it…Thank you so much

    Reply
  45. Alexander Talavera Karslake Posted on June 25, 2020 at 2:24 pm

    For developers out there getting started and wanting to test their scripts in the easiest way, look for QUOKKA.JS.

    Reply
  46. Deepthi Vemparala Posted on June 25, 2020 at 2:24 pm

    Thank you, for making that simple

    Reply
LEAVE A COMMENT