JavaScript-Developer-I Exam Question 101

Refer to the code below:

What is the output of this function when called with an empty array?
  • JavaScript-Developer-I Exam Question 102

    Refer to code below:
    Const objBook = {
    Title: 'Javascript',
    };
    Object.preventExtensions(objBook);
    Const newObjBook = objBook;
    newObjectBook.author ='Robert';
    What are the values of objBook and newObjBook respectively ?
  • JavaScript-Developer-I Exam Question 103

    What is the result of the code block?
  • JavaScript-Developer-I Exam Question 104

    Refer to the code below:

    What are the values for first and second once the executes?
  • JavaScript-Developer-I Exam Question 105

    Refer to the code below:

    A developer import a library that creates a web server. the imported library uses events and callback to start the server.
    Which code should be inserted at line 03 to set up an event and start the web server?