Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise #2 fullfilling a promise #155

Open
giovsteph opened this issue Feb 19, 2020 · 0 comments
Open

Exercise #2 fullfilling a promise #155

giovsteph opened this issue Feb 19, 2020 · 0 comments

Comments

@giovsteph
Copy link

I'm new to promises and I do not quite get why it keeps returning the error:

'You didn’t use fulfill method'

this is my code
`require('es6-promise');

'use strict';

let promise = new Promise(function(fulfill, reject) {
setTimeout(function(fulfill) {
console.log('FULFILLED!');
}, 300);
})
.then(function() {
console.log(setTimeout)
});`

thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant