JavaScript-Developer-I Exam Question 81

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 the search string?
  • JavaScript-Developer-I Exam Question 82

    Refer to the code below:

    Which code executes syhello once, two minutes from now?
  • JavaScript-Developer-I Exam Question 83

    Refer to the following object:
    const cat ={
    firstName: 'Fancy',
    lastName: ' Whiskers',
    Get fullName() {
    return this.firstName + ' ' + this.lastName;
    }
    };
    How can a developer access the fullName property for cat?
  • JavaScript-Developer-I Exam Question 84

    Given the following code:
    Let x = ('15' +10) +2;
    What is the value of x?
  • JavaScript-Developer-I Exam Question 85

    A developer wants to use a try...catch statement to catch any error that countSheep () may throw and pass it to a handleError () function.
    What is the correct implementation of the try...catch?
    A)

    B)

    C)

    D)