fr
fr

Question from the Javascript - Fundamentals test

What does the variable "promise" take in attribute(s)?

Medium

What does the variable "promise" take in attribute(s)?

 const promise = new Promise(?) 
Author: Vincent CotroStatus: Published(Update)Question passed 1622 times
Edit
5
Community Evaluations
developer avatar
Auteur anonyme
21/02/2025
it's something wrong here. a function that takes two variables into arguments: pass and fail -correct answer, (resolve, reject) - no?
developer avatar
Azedine
02/03/2025
resolve, reject are two callbacks, not a normal variables