JavaScript-Developer-I Exam Question 6

Given the code below:

What is logged to the console?
  • JavaScript-Developer-I Exam Question 7

    Refer to the code below:
    01 const server = require('server');
    02 /* Insert code here */
    A developer imports a library that creates a web server. The imported library uses events and callbacks to start the servers Which code should be inserted at the line 03 to set up an event and start the web server ?
  • JavaScript-Developer-I Exam Question 8

    A team that works on a big project uses npm to deal with projects dependencies.
    A developer added a dependency does not get downloaded when they execute npm
    install.
    Which two reasons could be possible explanations for this?
    Choose 2 answers
  • JavaScript-Developer-I Exam Question 9

    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?
  • JavaScript-Developer-I Exam Question 10

    bar, awesome is a popular JavaScript module. the versions publish to npm are:

    Teams at Universal Containers use this module in a number of projects. A particular project has the package, json definition below.

    A developer runs this command: npm install.
    Which version of bar .awesome is installed?