Learn JavaScript Promises in 19 minutes (For Beginners)

🚨 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

Пікірлер: 34

  • @leontrey777
    @leontrey77710 ай бұрын

    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!✌

  • @MikeeBuildstech
    @MikeeBuildstech Жыл бұрын

    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!

  • @yusuf9633
    @yusuf96332 күн бұрын

    thanks for this sonny. really helpful

  • @HazielDiego
    @HazielDiego Жыл бұрын

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

  • @bhargavkumar
    @bhargavkumar8 ай бұрын

    Please do one video on JavaScript Fetch API

  • @nehat786
    @nehat786 Жыл бұрын

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

  • @whosatyamgupta
    @whosatyamgupta8 ай бұрын

    thanks man !

  • @abhrajitray951
    @abhrajitray951 Жыл бұрын

    Really nice! Thanks!

  • @eliuddyn
    @eliuddyn Жыл бұрын

    Amazing 🔥🔥

  • @davidluhiriri7463
    @davidluhiriri7463 Жыл бұрын

    Thank you Sonny

  • @blueProgrammer
    @blueProgrammer Жыл бұрын

    I love your videos bava 😉😙

  • @molyoxide8358
    @molyoxide8358 Жыл бұрын

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

  • @snakecage
    @snakecage Жыл бұрын

    YO UR A PRO

  • @prabhurao2773
    @prabhurao2773 Жыл бұрын

    @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 !

  • @visheshpandey2001
    @visheshpandey2001 Жыл бұрын

    great video

  • @ReactWala
    @ReactWala Жыл бұрын

    Which color theme are you using ?

  • @Yusuf-sh4me
    @Yusuf-sh4me Жыл бұрын

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

  • @s.mtapadar2834
    @s.mtapadar2834 Жыл бұрын

    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

  • @smwtc11
    @smwtc118 ай бұрын

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

  • @smwtc11

    @smwtc11

    8 ай бұрын

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

  • @ayushkathariya
    @ayushkathariya Жыл бұрын

    which vs code theme is he using in this video

  • @mudgalz

    @mudgalz

    11 ай бұрын

    dracula

  • @blueProgrammer
    @blueProgrammer Жыл бұрын

    😉😉 Hi ra maayya😙

  • @usmanmarkaz
    @usmanmarkaz Жыл бұрын

    Sir plz make project in React Native ppz

  • @DoerNation
    @DoerNation Жыл бұрын

    Great content Sangha

  • @heroplayz1862
    @heroplayz1862 Жыл бұрын

    Plz make a detailed video on advenced react courses plzzz

  • @andrewsixsixsix

    @andrewsixsixsix

    Жыл бұрын

    Do it yourself

  • @heroplayz1862

    @heroplayz1862

    Жыл бұрын

    @@andrewsixsixsix ok bro

  • @genaldpaulo
    @genaldpaulo Жыл бұрын

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

  • @webofweb8291
    @webofweb8291 Жыл бұрын

    Sir, please make videos on angular

  • @44aliano
    @44aliano Жыл бұрын

    Any vlogs coming soon ?

  • @SonnySangha

    @SonnySangha

    Жыл бұрын

    A huge one inbound!!!

  • @44aliano

    @44aliano

    Жыл бұрын

    @@SonnySangha lfgo, exactly what we needed

  • @s.mtapadar2834
    @s.mtapadar2834 Жыл бұрын

    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