Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 37 Topic 4 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 37 Topic 4 Discussion

JavaScript-Developer-I Exam Topic 4 Question 37 Discussion:
Question #: 37
Topic #: 4

Refer to the code below:

01 async function functionUnderTest(isOK) {

02 if (isOK) return ' OK ' ;

03 throw new Error( ' not OK ' );

04 }

Which assertion accurately tests the above code?


A.

console.assert(await functionUnderTest(true), ' OK ' )


B.

console.assert(await (functionUnderTest(true), ' not OK ' ))


C.

console.assert(functionUnderTest(true), ' OK ' )


D.

console.assert(await functionUnderTest(true), ' not OK ' )


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.