Question 6

Refer to the following code:
function test (val) {
If (val === undefined) {
return 'Undefined values!' ;
}
if (val === null) {
return 'Null value! ';
}
return val;
}
Let x;
test(x);
What is returned by the function call on line 13?
  • Question 7

    A developer has the following array of student test grades:
    Let arr = [ 7, 8, 5, 8, 9 ];
    The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
    How should the developer implement the request?
  • Question 8

    A developer is debugging a web server that uses Node.js The server hits a runtimeerror
    every third request to an important endpoint on the web server.
    The developer added a break point to the start script, that is at index.js at he root of the
    server's source code. The developer wants to make use of chrome DevTools to debug.
    Which command can be run to access DevTools and make sure the breakdown is hit ?
  • Question 9

    Why would a developer specify a package.jason as a developed forge instead of a dependency ?
  • Question 10

    Refer to the code snippet below:
    Let array = [1, 2, 3, 4, 4, 5, 4, 4];
    For (let i =0; i < array.length; i++)
    if (array[i] === 4) {
    array.splice(i, 1);
    }
    }
    What is the value of array after the code executes?