Valid JavaScript-Developer-I Dumps shared by ExamDiscuss.com for Helping Passing JavaScript-Developer-I Exam! ExamDiscuss.com now offer the newest JavaScript-Developer-I exam dumps, the ExamDiscuss.com JavaScript-Developer-I exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com JavaScript-Developer-I dumps with Test Engine here:
Refer to the code below: let car1 = new Promise((_ ,reject)=> setTimeout(reject,2000,"Car1 crashed in")); let car2 = new Promise(resolve => setTimeout(resolve,1500,"Car2 completed")); let car3 = new Promise(resolve => setTimeout(resolve,3000,"Car3 completed")); Promise.race([car1,car2,car3]) .then(value=>{ let result = `${value} the race.`; }).catch(err=>{ console.log('Race is cancelled.',err); }); What is the value of result when promise.race execues?
Correct Answer:
Car2 completed the race.
Recent Comments (The most recent comments are at the top.)
Recent Comments (The most recent comments are at the top.)
Car2 completed the race.