JavaScript-Developer-I Exam Question 61

Refer to the code below:
Let car1 = new Promise((_ , reject) =>
setTimeout(reject, 2000, "car 1 crashed in" =>
Let car2 =new Promise(resolve => setTimeout(resolve, 1500, "car 2 completed")
Let car3 =new Promise(resolve => setTimeout(resolve, 3000, "car 3 completed")
Promise.race(( car1, car2, car3))
.then (value => (
Let result = '$(value) the race.';)}
.catch(arr => {
console.log("Race is cancelled.", err);
});
What is the value of result when Promise.race executes?
  • JavaScript-Developer-I Exam Question 62

    A developer is leading the creation of a new browser application that will serve a single
    page application. The team wants to use a new web framework Minimalsit.js. The Lead
    developer wants to advocate for a more seasoned web framework that already has a
    community around it.
    Which two frameworks should the lead developer advocate for?
    Choose 2 answers
  • JavaScript-Developer-I Exam Question 63

    Refer to the code below:

    What is the output of this function when called with an empty array?
  • JavaScript-Developer-I Exam Question 64

    Refer to the code below:

    Which statement allows a developer to cancel the scheduled timed function?
  • JavaScript-Developer-I Exam Question 65

    Refer to the code declarations below:

    Which three expressions return the string JavaScript?
    Choose 3 answers