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
Bht achi Explaination ha bhai apki.
Sir ap bohot acha samjhaty hein or jaldi samajh me bhi ajata hy thank u
great explanation
where did you learn all of this
you are very good Sir
amazing
Sir agr koi bnda async/await sahicse seekh le tu wo Promise na bh sekhe tu chalega?
Asalamoalykum bahi ap acha samgaty hy
kindly make a video on stale and fresh objects as well.
Very nice
Thanks
Assalamo Aleykym Sr yr btaden if k Ander return kiu lgaya he wo to function me lgta he na sr
Return use ho sakta hai sir ne condition ko true rakha hai or kaha haj ke jaisi he condition true ho return kardo resolve
Sir jo apny smjhaya wo to smjh agaya lkn ye Promise use kahan hota he iska usecase ya koi example
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.
@@itmatepakistan ok Sir thank you so much ☺️
Then why we learn promise if we use await
Assalamualaikum sir new promise PR error araha h
Ap kuch galti ker rahe hon ge