JavaScript-Developer-I Exam Question 46

Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
  • JavaScript-Developer-I Exam Question 47

    A developer wants to literate through an array of objects and count the objects whose property value, name, start with the letter N. const arrobj - [{''name ''t ''Zach''}, { ''name t Kate'') , ( ''name Alice'') < ( ''name'' t ''Bob'') , (''name'' t ''Nathan) , (''name'' t ''Nathandle1'')] Refer to the code snippet below:

    Which missing lines 02 and 03 return the correct count?
  • JavaScript-Developer-I Exam Question 48

    A developer is debugging a web server that uses Node.js. The server hits a runtime error every third request to an important endpoint on the web server.
    The developer added a break point to the start script, that is at index, js at the root of the server's source code. The developer wants to make use of Chrome DevTools to debug.
    Which command can be run to access DevTools and make sure the breakpoint is hit?
  • JavaScript-Developer-I Exam Question 49

    Refer to the code below:
    Const pi w 3.1415926;
    What is the data type of pi?
  • JavaScript-Developer-I Exam Question 50

    Which three options show valid methods for creating a fat arrow function? Choose 3 answers