CRT-600 Exam Question 1

developer wants to use a module named universalContainersLib and them call functions from it.
How should a developer import every function from the module and then call the fuctions foo and bar ?
  • CRT-600 Exam Question 2

    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?
  • CRT-600 Exam Question 3

    Which code statement below correctly persists an objects in local Storage ?
  • CRT-600 Exam Question 4

    Given the following code:

    What is the output of line 02?
  • CRT-600 Exam Question 5

    A developer is required to write a function that calculates the sum of elements in an array but is getting undefined every time the code is executed. The developer needs to find what is missing in the code below.
    Const sumFunction = arr => {
    Return arr.reduce((result, current) => {
    //
    Result += current;
    //
    ), 10);
    );
    Which option makes the code work as expected?