List of questions
Related questions
Question 25 - Certified JavaScript Developer I discussion
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), ' not OK ')
D.
Console.assert (await functionUnderTest(true), 'OK')
Your answer:
0 comments
Sorted by
Leave a comment first