You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand how to get a promise to be fulfilled by the end of lesson 2. Here is what I run
const yes = () => return 'YES'
const no = () => return 'NO'
const wtf = () => return 'This should never happen!'
var p = new Promise( function(y,n) {
if(y) return yes
else if(n) return no
else return wtf
}
)
This runs in the node repl: I actually create a promise. But then how do I make it succeed? Do I pass something? (No: node repl tells me p is not a function.) And what does then mean? This is what I came here to find out.
Also your front page says this is updated weekly, but talking about ES6 polyfill seems like something I don't need to do with the latest node?
The text was updated successfully, but these errors were encountered:
I don't understand how to get a promise to be fulfilled by the end of lesson 2. Here is what I run
This runs in the node repl: I actually create a promise. But then how do I make it succeed? Do I pass something? (No: node repl tells me
p
is not a function.) And what doesthen
mean? This is what I came here to find out.Also your front page says this is updated weekly, but talking about ES6 polyfill seems like something I don't need to do with the latest node?
The text was updated successfully, but these errors were encountered: