Question 51

Given the JavaSript below:

Which code should replace the placeholder comment on line 05 to hide accounts that do not match the search string?
  • Question 52

    Refer to the HTML below:

    Which expression outputs the screen width of the element with the ID card-01?
  • Question 53

    Refer to HTML below:
    <div id ="main">
    <div id = " card-00">This card is smaller.</div>
    <div id = "card-01">The width and height of this card is determined by its contents.</div>
    </div>
    Which expression outputs the screen width of the element with the ID card-01?
  • Question 54

    A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.
    Here is the HTML file content:
    <input type =" text" value="Hello" name ="input">
    <button type ="button" >Display </button> The developer wrote the javascript code below:
    Const button = document.querySelector('button');
    button.addEvenListener('click', () => (
    Const input = document.querySelector('input');
    console.log(input.getAttribute('value'));
    When the user clicks the button, the output is always "Hello".
    What needs to be done to make this code work as expected?
  • Question 55

    A developer has a formatName function that takes two arguments, firstName and lastName and returns a string. They want to schedule the function to run once after five seconds.
    What is the correct syntax to schedule this function?