Questions for the JAVASCRIPT DEVELOPER I were updated on : Nov 30 ,2025
A developer initiates a server with the file server,js and adds dependencies in the source codes
package,json that are required to run the server.
Which command should the developer run to start the server locally?
C
After user acceptance testing, the developer is asked to change the webpage background based on
user's location. This change was implemented and deployed for testing.
The tester reports that the background is not changing, however it works as required when viewing
on the developer's computer.
Which two actions will help determine accurate results?
Choose 2 answers
A,D
A developer wants to use a module called DataPrettyPrint. This module exports one default
functioncalled printDate ().
How can a developer import and use the printDate() function?
A)
B)
C)
D)
B
A developer has the function, shown below, that is called when a page loads.
Where can the developer see the log statement after loading the page in the browser?
A
A developer at Universal Containers is creating their new landing page based on HTML, CSS, and
JavaScript.
To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to
be executed when the webpage is fully loaded (HTML content and all related files), in order to do
some custom initializations.
Which implementation should be used to call Fe:s:-a;::eHec5;te::.-.ter.: based on the business
requirement above?
C
Given the following code:
What is the output of line 02?
D
A developer tries to retrieve all cookies, then sets a certain key value pair in the cookie. These
statements are used:
What is the behavior?
C
Given the JavaScript below:
Which code should replace the placeholder comment on line 06 to hide accounts that do not match
the search string?
D
Refer to the code below:
What is the result when the Promise in the execute function is rejected?
C
Refer to the code below:
const car = {
price:100,
getPrice:function(){
return this.price;
}
};
const customCar = Object.create(car);
customCar.price = 70;
delete customCar.price;const result = customCar.getPrice();
Whatis the value of result after the code executes?
A
Refer to the followingcode:
class Vehicle{
constructor(plate){
this.plate = plate;
}
}
class Truck extends Vehicle{
constructor(plate, weight){
//Missing code
this.weight = weight;
}
displayWeight(){
console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);
}
}let myTruck = new Truck('123Ab',5000);
myTruck.displayWeight();
Which statement should be added to missing code for the code to display 'The truck 123AB has a
weight of 5000lb.
A
A developer has two ways to write a function:
Option A:
function Monster(){
this.growl = ()=>{
console.log('Grr!');
}
}
Option B:
function Monster(){};
Monster.prototype.growl = ()=>{
console.log('Grr!');
}
After deciding on an option, the developercreates 1000 monster objects.
How many growl methods are created with Option A and Option B?
B
Refer to the code below
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer
A,D
At Universal Containers, every team has its own way of copyingJavaScript objects. The code snippet
shows an Implementation from one team:
What is the output of the code execution?
D
A developer writes the code below to calculate the factorial of a given number
function sum(number){
return number * sum(number-1);
}
sum(3);
what is the result of executing the code.
C