0

Here is the snapshot of code that I am trying to run

I am not getting why is it returning different results in both the cases and How is it adding the resolved string in the PromiseValue of the promise object that is returned.

promise in devtools

Ankur Marwaha
  • 1,613
  • 2
  • 15
  • 30
  • 5
    `asdf` is passing a function reference. `asdf()` is a function call. – Agney Feb 13 '18 at 05:05
  • 1
    "Here is how to fold clothes. When the washing machine finishes, fold the laundry like I showed you" vs "Let me fold all clothes and then run the washing machine". – VLAZ Feb 13 '18 at 05:11
  • I had written an answer long back. That might help you: https://stackoverflow.com/a/35667349/3783478. Yes the linked answer does not use promise but has fundamentally same solution – Rajesh Feb 13 '18 at 05:25

0 Answers0