Question 51

Which statement parses successfully?
  • Question 52

    Given two expressions var1 and var2, what are two valid ways to return the logical AND of the two expression and ensure it is data type Boolean? Choose 2 answers
  • Question 53

    Refer to the code below:
    <html lang="en">
    <table onclick="console.log(Table log');">
    <tr id="row1">
    <td>Click me!</td>
    </tr>
    <table>
    <script>
    function printMessage(event) {
    console.log('Row log');
    }
    Let elem = document.getElementById('row1');
    elem.addEventListener('click', printMessage, false);
    </script>
    </html>
    Which code change should be made for the console to log only Row log when 'Click me! ' is clicked?
  • Question 54

    Which code change should be done for the console to log the following when 'Click me!' is clicked'
    > Row log
    > Table log
  • Question 55

    Refer to the following code:

    What is the output of line 11?