Promise in typescript/javascript | Typescript for beginners in hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024
  • In TypeScript/JavaScript, a promise is a mechanism for handling asynchronous operations. It represents a value that may not be available yet, but will be resolved at some point in the future. Promises have three states: pending, fulfilled, and rejected. Promises are created using the Promise constructor, which takes an executor function that has two arguments: resolve and reject. The resolve function is called when the promise is fulfilled, and the reject function is called when the promise is rejected. Promises are a powerful tool for managing asynchronous operations in TypeScript, and they help to make your code more readable and maintainable.
    #typescript #promises #AsynchronousOperations #ExecutorFunction #resolve17 #reject #fulfilled #rejected #ReadableCode #MaintainableCode #typescript #ts #hindi #urdu #typescripttutorials #javascript #javascripttutorials #javascripttutorial #tutorial #tutorials #js #ecmascript #ecmascript6 #ecmascript7 #es7 #es6 #ecmascript7 #promise #promises #reject #resolve #fullfill

ความคิดเห็น • 18

  • @moonshahbaz432
    @moonshahbaz432 ปีที่แล้ว +4

    Bht achi Explaination ha bhai apki.

  • @magsit.v5070
    @magsit.v5070 4 หลายเดือนก่อน +2

    Sir ap bohot acha samjhaty hein or jaldi samajh me bhi ajata hy thank u

  • @Eprotech-px4bo
    @Eprotech-px4bo 2 หลายเดือนก่อน

    great explanation

  • @Umair_Ali_Khan
    @Umair_Ali_Khan 6 หลายเดือนก่อน +4

    where did you learn all of this
    you are very good Sir

  • @khizraiqbal-b8l
    @khizraiqbal-b8l 4 หลายเดือนก่อน +2

    amazing

  • @MansoorAhmed5
    @MansoorAhmed5 3 หลายเดือนก่อน

    Sir agr koi bnda async/await sahicse seekh le tu wo Promise na bh sekhe tu chalega?

  • @NabeelKhan-b1t
    @NabeelKhan-b1t ปีที่แล้ว +1

    Asalamoalykum bahi ap acha samgaty hy

  • @TruthIsOutNow
    @TruthIsOutNow ปีที่แล้ว

    kindly make a video on stale and fresh objects as well.

  • @SarbaFareed-yf1lv
    @SarbaFareed-yf1lv ปีที่แล้ว

    Very nice

  • @Imranansari-ij3xl
    @Imranansari-ij3xl 4 หลายเดือนก่อน

    Assalamo Aleykym Sr yr btaden if k Ander return kiu lgaya he wo to function me lgta he na sr

    • @furyavenger7714
      @furyavenger7714 3 หลายเดือนก่อน

      Return use ho sakta hai sir ne condition ko true rakha hai or kaha haj ke jaisi he condition true ho return kardo resolve

  • @naimalarain9271
    @naimalarain9271 6 หลายเดือนก่อน

    Sir jo apny smjhaya wo to smjh agaya lkn ye Promise use kahan hota he iska usecase ya koi example

    • @itmatepakistan
      @itmatepakistan  6 หลายเดือนก่อน +3

      Ab promise ki jaga await use hota hai data ko fetch kerne kay lia is playlist ki next video me ap ko use case bhi nazar ajay ga real example kay sath async await wali video me.

    • @naimalarain9271
      @naimalarain9271 6 หลายเดือนก่อน

      @@itmatepakistan ok Sir thank you so much ☺️

    • @goldenclicks7278
      @goldenclicks7278 4 หลายเดือนก่อน

      Then why we learn promise if we use await

  • @MuhammadadnanmMuhammadadnanm
    @MuhammadadnanmMuhammadadnanm 3 หลายเดือนก่อน

    Assalamualaikum sir new promise PR error araha h

    • @itmatepakistan
      @itmatepakistan  3 หลายเดือนก่อน

      Ap kuch galti ker rahe hon ge