const dataPromise = new (); i need help with this
i need help with this
Heidi FryzellFront End Web Development Treehouse Moderator 21,764 Points
For this task the instructions want you to complete the code by defining the constructor that creates a promise.
This is done by using the "new" keyword followed by the Promise() constructor function.
const dataPromise = new Promise();
Here is a video where Guil goes over this: https://teamtreehouse.com/library/create-a-promise
Good luck and Happy Coding! Heidi