Skip to content

Commit

Permalink
Update 62_Promise.js
Browse files Browse the repository at this point in the history
Learned the if then block is not returning any thing it returns
Promise.resolve(undefined)
  • Loading branch information
vaibhav164 authored Dec 5, 2024
1 parent 7b438fb commit ab34edc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/62_Promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ promiseDemo.then(data=>{
}).then(updatedData=>{
console.log(updatedData)
})
/*** If promise resolve is not returning anything in that case it return undeifined
as we can see L39 .then method it is not returning anything in that case on the method returns
Promise.resolve(undefined)
**/

0 comments on commit ab34edc

Please sign in to comment.