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?
(With corrected typing errors: node_inspect # node inspect, node_start_inspect # node start inspect.)
  • Question 22

    Corrected code:
    let a = " * " ;
    let b = " ** " ;
    // x = 3;
    console.log(a);
    What is displayed when the code executes?
  • Question 23

    Given two expressions, exp1 and exp2, which two valid ways return the logical AND of the two expressions and ensure it is a Boolean?
  • Question 24

    Refer to the code:
    01 const event = new CustomEvent(
    02 // Missing code
    03 );
    04 obj.dispatchEvent(event);
    A developer needs to dispatch a custom event called update to send information about recordId.
    Which two options can be inserted at line 02?
  • Question 25

    Refer to code below:
    Function muFunction(reassign){
    Let x = 1;
    var y = 1;
    if( reassign ) {
    Let x= 2;
    Var y = 2;
    console.log(x);
    console.log(y);}
    console.log(x);
    console.log(y);}
    What is displayed when myFunction(true) is called?