From ab34edc180146ea6f37fd3034db53ea361192c74 Mon Sep 17 00:00:00 2001 From: Vaibhav Singh <68284839+vaibhav164@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:49:09 +0530 Subject: [PATCH] Update 62_Promise.js Learned the if then block is not returning any thing it returns Promise.resolve(undefined) --- demo/62_Promise.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/62_Promise.js b/demo/62_Promise.js index e203c29..66bb95e 100644 --- a/demo/62_Promise.js +++ b/demo/62_Promise.js @@ -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) + +**/