Question 96

Refer to the following code:

Which two statements could be inserted at line 17 to enable the function call on line 18?
Choose 2 answers
  • Question 97

    developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number was 1.1.3.
    Following semantic versioning format, what should the new package version number be?
  • Question 98

    A developer needs to test this functions:

    Which two assert statements are valid tests for this function?
  • Question 99

    Refer to the following code:
    <html lang="en">
    <body>
    <div onclick = "console.log('Outer message') ;">
    <button id ="myButton">CLick me<button>
    </div>
    </body>
    <script>
    function displayMessage(ev) {
    ev.stopPropagation();
    console.log('Inner message.');
    }
    const elem = document.getElementById('myButton');
    elem.addEventListener('click' , displayMessage);
    </script>
    </html>
    What will the console show when the button is clicked?
  • Question 100

    Refer to the following code:

    What will the console when the button is clicked?