4.4/5 - (8 votes)

Buy Latest Jan 14, 2023 JavaScript-Developer-I Exam Q&A PDF – One Year Free Update

Download the Latest JavaScript-Developer-I Dump – 2023 JavaScript-Developer-I Exam Questions

QUESTION 14
Refer to the string below.
Const str=’Salesforce’;
Which two statements results in the word ‘Sales’?

QUESTION 15
A developer creates a class that represents a blog post based on the requirement that a Post should have a body author and view count.
The Code shown Below:
Class Post {
// Insert code here
This.body =body
This.author = author;
this.viewCount = viewCount;
}
}
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instanceof a Post with the three attributes correctly populated?

 
 
 
 

QUESTION 16
Refer to the following code:
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.

 
 
 
 

QUESTION 17
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

 
 
 
 

QUESTION 18
Given the following code, what is the value of x?
let x = ’15’ + (10 * 2);

 
 
 
 

QUESTION 19
Refer to the following code:

Which statement should be added to line 09 for the code to display. The boat has a capacity of 10 people?

 
 
 
 

QUESTION 20
Given the JavaScript below:

Which code should replace the placeholder comment on line 06 to hide accounts that do not match the search string?

 
 
 
 

QUESTION 21
Given the following code:

is the output of line 02?

 
 
 
 

QUESTION 22
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?

 
 
 
 

QUESTION 23
Which function should a developer use to repeatedly execute code at a fixed interval ?

 
 
 
 

QUESTION 24
Refer to the code below:

What is the value result after line 10 executes?

 
 
 
 

QUESTION 25
A developer is debugging a web server that uses Node.js. The server hits a runtime error 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 the 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 breakpoint is hit?

 
 
 
 

QUESTION 26
A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.
Which global variable can be used in the script?

 
 
 
 

QUESTION 27
A developer is leading the creation of a new web server for their team that will fulfill API requests from an existing client.
The team wants a web server that runs on Node.Js, and they want to use the new web framework Minimalist.Js. The lead developer wants to advocate for a more seasoned back-end framework that already has a community around it.
Which two frameworks could the lead developer advocate for?
Choose 2 answers

 
 
 
 

QUESTION 28
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?

 
 
 
 

QUESTION 29
A developer creates a generic function to log custom messages 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?

 
 
 
 
 

QUESTION 30
What is the result of the code block?

 
 
 
 

QUESTION 31
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 ?

 
 
 
 
 

QUESTION 32
Refer to the code below:

Which value can a developer expect when referencing country,capital,cityString?

 
 
 
 

QUESTION 33
Refer to the code below:
Let car1 = new Promise((_ , reject) =>
setTimeout(reject, 2000, “car 1 crashed in” =>
Let car2 =new Promise(resolve => setTimeout(resolve, 1500, “car 2 completed”) Let car3 =new Promise(resolve => setTimeout(resolve, 3000, “car 3 completed”) Promise.race(( car1, car2, car3))
.then (value => (
Let result = ‘$(value) the race.’;)}
.catch(arr => {
console.log(“Race is cancelled.”, err);
});
What is the value of result when Promise.race executes?

 
 
 
 

QUESTION 34
developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information the developer has, which code logs an error at boost with an event?

 
 
 
 

QUESTION 35
Refer to the following code:

Which statement should be added to line 09 for the code to display. The truck 123AB has a weight of 5000 Ib. ‘?

 
 
 
 

QUESTION 36
Refer to the code below:
function foo () {
const a =2;
function bat() {
console.log(a);
}
return bar;
}
Why does the function bar have access to variable a ?

 
 
 
 

QUESTION 37
Universal Containers recently launched its new landing page to host a crowd-funding campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, it creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below:

All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.

 
 
 
 

QUESTION 38
Cloud Kicks has a class to represent item for sale in an online store, as shown below:

A new business requirement comes in that request a clothingitem class, that should have all of the properties and methods of the item class, but will also have properties that are specific top clothes.
Which line of code properly declares the clothingitem class such that it inherits from item?

 
 
 
 

Verified JavaScript-Developer-I Dumps Q&As – 1 Year Free & Quickly Updates: https://www.trainingquiz.com/JavaScript-Developer-I-practice-quiz.html

Related Links: myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt

Leave a Reply

Please sing in to post your comment or singup if you don't have account.
Enter the text from the image below