Learn JavaScript Promises in 19 minutes (For Beginners)

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • 🚨 Join the world’s BEST developer course & community: Zero to Full Stack Hero!
    www.papareact.com/course
    📩 Want coding problems (with solutions!) delivered to your inbox daily? www.papareact.com/dailycoding...
    🔴 LOOKING FOR THE CODE? 🛠️
    links.papareact.com/github
    Join me as I teach you several topics related to Promise & Promise Chaining such as:
    👉 What is a Promise & How do we use it?
    👉 Important points to remember when using Promises & Chaining Promises!
    👉 Several use cases of Promises in action!
    👉 Why it's important to know and understand Promise Chaining!
    🖥️ Code Editor used in this tutorial: runjs.app/
    👇 FOLLOW ME HERE:
    Instagram: links.papareact.com/instagram
    Facebook: links.papareact.com/facebook
    LinkedIn: links.papareact.com/linkedin
    Twitter: links.papareact.com/twitter
    Discord: links.papareact.com/discord
    Newsletter: links.papareact.com/newsletter
    💰 WANT TO SUPPORT THE CHANNEL?
    Donate here: links.papareact.com/donate
    Grab some PAPAFAM Merch: links.papareact.com/merch
    🕐 TIMESTAMPS:
    00:00 Introduction
    00:15 Promises Explained
    00:31 Promise States
    01:00 Promise Definition & Syntax
    01:56 Promise Example #1
    03:45 Promise Example #2
    04:40 Promise Example #3
    05:22 Promise Visual Example
    06:19 Promise Chaining Explained
    06:56 Promise Chaining Example #1
    09:15 Promise Chaining Example #2
    11:12 Promise Chaining Example #3 [the catch() method]
    13:00 Promise Chaining Example #4 [the finally() method]
    14:46 Promise Chaining Example #5
    17:21 Promises vs JavaScript Callbacks
    18:11 Outro
    Let’s get it PAPAFAM 🔥.
    #javascript #tutorial #beginner #promises

Komentáře • 35

  • @MikeeBuildstech
    @MikeeBuildstech Před rokem +2

    Thanks for the Promises intro Sonny. Def going to dive deeper into this function. Would love to see a tutorial from you giving a real world use case for better understanding. Thanks again enjoy the weekend!

  • @leontrey777
    @leontrey777 Před 10 měsíci +4

    Thank you! I was having such a hard time grasping this concept. However, the way you broke it down was perfect for my way of thinking.
    subbed!✌

  • @HazielDiego
    @HazielDiego Před rokem

    You did a great job comparing the ways to handle errors. Thank you for the video.

  • @abhrajitray951
    @abhrajitray951 Před rokem

    Really nice! Thanks!

  • @yusuf9633
    @yusuf9633 Před 22 dny

    thanks for this sonny. really helpful

  • @nehat786
    @nehat786 Před rokem

    Thats a great an awesome video sir. You cleared my all doubt of promises in javascript.

  • @eliuddyn
    @eliuddyn Před rokem

    Amazing 🔥🔥

  • @davidluhiriri7463
    @davidluhiriri7463 Před rokem +1

    Thank you Sonny

  • @blueProgrammer
    @blueProgrammer Před rokem +1

    I love your videos bava 😉😙

  • @whosatyamgupta
    @whosatyamgupta Před 9 měsíci

    thanks man !

  • @visheshpandey2001
    @visheshpandey2001 Před rokem

    great video

  • @molyoxide8358
    @molyoxide8358 Před rokem

    Man seriously I was scratching my head from past 4 hours to learn this complex topic

  • @snakecage
    @snakecage Před rokem

    YO UR A PRO

  • @bhargavkumar
    @bhargavkumar Před 9 měsíci +1

    Please do one video on JavaScript Fetch API

  • @DoerNation
    @DoerNation Před rokem

    Great content Sangha

  • @prabhurao2773
    @prabhurao2773 Před rokem

    @Sonny Sangha - Since You Are Rolling Out These JsMethods Anyway ? Could You Consider Rolling Out A Sequence Of JS Methods ( From Most Used To Less Used But Are Unique & Solve Certain Problem Eh ? ) Every 2 Weeks ? Will Help A Lot Of Us Intermediate Developers - Like How To Filter With Multi Select DropDowns Work While Consuming The Data From The API !

  • @ReactWala
    @ReactWala Před rokem

    Which color theme are you using ?

  • @Yusuf-sh4me
    @Yusuf-sh4me Před rokem +1

    please make a vedio of implementing used car price prediction application using react native.. please

  • @s.mtapadar2834
    @s.mtapadar2834 Před rokem

    I watched your all clones. I have abled to make Clones on your channel but I can't make logic making to run button! I do understand CSS, HTML Tailwind but I can't make logic to operate like button event/ operation! Can you please send me to understand how can I understand JS or react? Please @sonny

  • @blueProgrammer
    @blueProgrammer Před rokem +1

    😉😉 Hi ra maayya😙

  • @heroplayz1862
    @heroplayz1862 Před rokem

    Plz make a detailed video on advenced react courses plzzz

  • @ayushkathariya
    @ayushkathariya Před rokem

    which vs code theme is he using in this video

  • @usmanmarkaz
    @usmanmarkaz Před rokem

    Sir plz make project in React Native ppz

  • @genaldpaulo
    @genaldpaulo Před rokem

    NEXTJS 13.2 CRASH COURSE or remake the one you made about NEXTJS 1 year ago please

  • @xamdishaafici-ge7rv
    @xamdishaafici-ge7rv Před 13 dny

    pleas js advanced consebte importance

  • @smwtc11
    @smwtc11 Před 9 měsíci

    why it not showing pending in the reject case for 5seconds ?

    • @smwtc11
      @smwtc11 Před 9 měsíci

      is the syntax like : settimeout ( () => promise.then((reject (newError("failed")) ,5000); for showing pending till 5seconds ..?

  • @webofweb8291
    @webofweb8291 Před rokem

    Sir, please make videos on angular

  • @44aliano
    @44aliano Před rokem

    Any vlogs coming soon ?

    • @SonnySangha
      @SonnySangha  Před rokem +1

      A huge one inbound!!!

    • @44aliano
      @44aliano Před rokem

      @@SonnySangha lfgo, exactly what we needed

  • @s.mtapadar2834
    @s.mtapadar2834 Před rokem

    Sonny I couldn't get this logic, how it works really? I am watching your videos and other videos on JS but I can't make logic or event. Can you lead me to how to understand this JS ? Please @SonnySangha