Question 26

developer is trying to convince management that their team will benefit from using Node.js for a backend server that they are going to create. The server will be a web server that handles API requests from a website that the team has already built using HTML, CSS, and JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager?
Choose 3 answers:
  • Question 27

    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 28

    Refer to the code below:
    let sayHello = () => {
    console.log ('Hello, world!');
    };
    Which code executes sayHello once, two minutes from now?
  • Question 29

    The developer wants to test the array shown:
    const arr = Array(5).fill(0)
    Which two tests are the most accurate for this array ?
    Choose 2 answers:
  • Question 30

    Refer to the code below:
    Function changeValue(obj) {
    Obj.value = obj.value/2;
    }
    Const objA = (value: 10);
    Const objB = objA;
    changeValue(objB);
    Const result = objA.value;
    What is the value of result after the code executes?