Question 16
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?
Async funct on functionUnderTest(isOK) {
If (isOK) return 'OK';
Throw new Error('not OK');
)
Which assertion accurately tests the above code?
Question 17
A developer wants to create an object from a function in the browser using the code below.

What happens due to the lack of the mm keyword on line 02?

What happens due to the lack of the mm keyword on line 02?
Question 18
Refer to the code below:

What is the output of this function when called with an empty array?

What is the output of this function when called with an empty array?
Question 19
Given the JavaScript below:
01 function filterDOM (searchString) {
02 const parsedSearchString = searchString && searchString.toLowerCase() ;
03 document.quesrySelectorAll(' .account' ) . forEach(account => (
04 const accountName = account.innerHTML.toLOwerCase();
05 account. Style.display = accountName.includes(parsedSearchString) ? /*Insert code*/;
06 )};
07 }
Which code should replace the placeholder comment on line 05 to hide accounts that do not match thesearch string?
01 function filterDOM (searchString) {
02 const parsedSearchString = searchString && searchString.toLowerCase() ;
03 document.quesrySelectorAll(' .account' ) . forEach(account => (
04 const accountName = account.innerHTML.toLOwerCase();
05 account. Style.display = accountName.includes(parsedSearchString) ? /*Insert code*/;
06 )};
07 }
Which code should replace the placeholder comment on line 05 to hide accounts that do not match thesearch string?
Question 20
Given the following code:
Let x =null;
console.log(typeof x);
What is the output of the line 02?
Let x =null;
console.log(typeof x);
What is the output of the line 02?
