Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1, 2]?
Choose 3 answer
A. let x = arr. slice (2);
B. let x = arr. slice (0, 2);
C. let x arr.filter((a) => (return a <= 2 });
D. let x = arr.filter ((a) => 2 }) ;
E. let x =arr.splice(0, 2);
Developer uses the code below to format a date.

After executing, what is the value of formatted Date?
A. May 10, 2020
B. June 10, 2020
C. October 05, 2020
D. November 05, 2020
Refer to the code below:
Function Person(firstName, lastName, eyecolor) {
this.firstName =firstName;
this.lastName = lastName;
this.eyeColor = eyeColor;
}
Person.job = `Developer';
const myFather = new Person(`John', `Doe');
console.log(myFather.job);
What is the output after the code executes?
A. ReferenceError: eyeColor is not defined
B. ReferenceError: assignment to undeclared variable "Person"
C. Developer
D. Undefined
Universal Containers (UC) just launched a new landing page, but users complain that thewebsite is slow. A developer found some functions any that might cause this problem. To verify this, the developer decides to execute everything and log the time each of these three suspicious functions consumes.
Which function can the developer use to obtain the time spent by every one of the three functions?

A. console. timeLog ()
B. console.timeStamp ()
C. console.trace()
D. console.getTime ()
A developer creates a generic function to log custommessages in the console. To do this, the function below is implemented.
01 function logStatus(status){
02 console./*Answer goes here*/{`Item status is: %s', status};
03 }
Which three console logging methods allow the use of string substitution in line 02?
A. Assert
B. Log
C. Message
D. Info
E. Error
A developer writers the code below to calculate the factorial of a given number.
Function factorial(number) {
Return number + factorial(number -1);
}
factorial(3);
What isthe result of executing line 04?
A. 0
B. 6
C. -Infinity
D. RuntimeError
Refer to the code below:

What is the value of result when the code executes?
A. 10-10
B. 5-5
C. 10-5
D. 5-10
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 thesource 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?
A. node -i server.js
B. node inspect server,js
C. node server,js inspect
D. node start inspect server,js
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay =async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?
A. 4 2 1 5 3
B. PlaceHolder
C. PlaceHolder
D. PlaceHolder
Given the following code:

What is the output of line 02?
A. "null"
B. "x-
C. "undefined" 0
D. 'object"