Question 21

A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.
The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server, js file will start the server. the developer wants to debug the Node.js server only using the terminal.
Which command can the developer use to open the CLI debugger in their current terminal window?
  • Question 22

    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 23

    A developer has two ways to write a function:
    Option A:
    function Monster() {
    This.growl = () => {
    Console.log ("Grr!");
    }
    }
    Option B:
    function Monster() {};
    Monster.prototype.growl =() => {
    console.log("Grr!");
    }
    After deciding on an option, the developer creates 1000 monster objects.
    How many growl methods are created with Option A Option B?
  • Question 24

    Given the following code:
    Let x =null;
    console.log(typeof x);
    What is the output of the line 02?
  • Question 25

    Refer to the following array:
    Let arr = [ 1,2, 3, 4, 5];
    Which three options result in x evaluating as [3, 4, 5] ?
    Choose 3 answers.