Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 17 Topic 2 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 17 Topic 2 Discussion

JavaScript-Developer-I Exam Topic 2 Question 17 Discussion:
Question #: 17
Topic #: 2

Refer to the code below:

01 const exec = (item, delay) =>{

02 newPromise(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


A.

Async runParallel () .then(data);


B.

runParallel ( ). done(function(data){return data;});


C.

runParallel () .then(data);


D.

runParallel () .then(function(data)return data


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.