Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 9 Topic 1 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 9 Topic 1 Discussion

JavaScript-Developer-I Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

Refer to the code below:

Async funct on functionUnderTest(isOK) {

If (isOK) return ‘OK’;

Throw new Error(‘not OK’);

)

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 (await functionUnderTest(true), ‘ notOK ’)


D.

Console.assert (await functionUnderTest(true), ‘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.