I am having trouble in promise and alert function

Question: what to do when promise and alert function shows error in node.js template?

Current behavior: its not displaying

Desired behavior: resolve value and alert value should be displayed*

Repl link: https://replit.com/@khadijahaider36/promises#index.js

code snippet

What do you mean ‘it’

I don’t see alert in your code

Well when I run the code the resolve value is indeed displayed, but since there is no alert I don’t expect to see any alert value

Can you give us more informations about your issue?

1 Like