Exam JS-Dev-101 Dumps - Salesforce Certified JavaScript Developer
Exam JS-Dev-101 Dumps - Salesforce Certified JavaScript Developer
JS-Dev-101
Salesforce Certified JavaScript
Developer Exam Dumps
QUESTION & ANSWERS
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
QUESTION: 1
A developer has a web server running with Node.js. The command to start the web server is node server.js.
The web server started havinglatency issues. Instead of a one second turnaround for web requests, the
developer now sees a five second turnaround.Which command can the web developer run to see what the
module is doing during the latency period?
Correct Answer: D
QUESTION: 2
A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns
the sum of the first three numbers in the array, and the test passes.A different developer made changes to
the behavior of sum3 to instead sum only the first two numbers present in the array.
Which two results occur when running this test on the updated sum3 function?Choose 2 answers
QUESTION: 3
Refer to the expression below:Let x = ('1' + 2) == (6 * 2);How should this expression be modified to ensure
that evaluates to false?
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Option A : Let x = ('1' + ' 2') == ( 6 * 2);
Correct Answer: B
QUESTION: 4
Correct Answer: B
QUESTION: 5
Refer to HTML below:The current status of an Order: In Progress Which JavaScript statement changes the
text 'In Progress' to 'Completed' ?
Correct Answer: C
QUESTION: 6
Which javascript methods can be used to serialize an object into a string and deserializea JSON string into an
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
object, respectively?
Correct Answer: A
QUESTION: 7
developer is trying to convince management that their team will benefit from usingNode.js for a backend
server that they are going to create. The server will be a web server thathandles API requests from a website
that the team has already built using HTML, CSS, andJavaScript.Which three benefits of Node.js can the
developer use to persuade their manager?Choose 3 answers:
Option A : I nstalls with its own package manager to install and manage third-party libraries.
Option B : Ensures stability with one major release every few years.
Option C : Performs a static analysis on code before execution to look for runtime errors.
QUESTION: 8
Given the code below:const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined
]);What is the value of copy?
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Correct Answer: D
QUESTION: 9
Considering type coercion, what does the following expression evaluate to?True + '13' + NaN
Option B : 14
Correct Answer: D
QUESTION: 10
Given two expressions var1 and var2. What are two valid ways to return the logical ANDof the two
expressions and ensure it is data type Boolean ?Choose 2 answers:
QUESTION: 11
A developer is leading the creation of a new browser application that will serve a singlepage application. The
team wants to use a new web framework Minimalsit.js. The Leaddeveloper wants to advocate for a more
seasoned web framework that already has acommunity around it.Which two frameworks should the lead
developer advocate for?Choose 2 answers
Option A : Vue
Option B : Angular
Option C : Koa
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Option D : Express
QUESTION: 12
Which three actions can be using the JavaScript browser console?Choose 3 answers:
Option D : view , change, and debug the JavaScript code of the page.
QUESTION: 13
Refer to the code below:Function changeValue(obj) {Obj.value = obj.value/2;}Const objA = (value: 10);Const
objB = objA;changeValue(objB);Const result = objA.value;What is the value of result after the code executes?
Option A : 10
Option B : Nan
Option C : 5
Option D : Undefined
Correct Answer: C
QUESTION: 14
A developer creates a simple webpage with an input field. When a user enters text inthe input field and
clicks the button, the actual value of the field must be displayed in theconsole.Here is the HTML file
content:< input type ='' text'' value=''Hello'' name =''input'' >< button type =''button'' >Display < /button
>The developer wrote the javascript code below:Const button =
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
document.querySelector('button');button.addEvenListener('click', () => (Const input =
document.querySelector('input');console.log(input.getAttribute('value'));When the user clicks the button, the
output is always ''Hello''.What needs to be done make this code work as expected?
Correct Answer: A
QUESTION: 15
A developer creates a class that represents a blog post based on the requirement that aPost should have a
body author and view count.The Code shown Below:Class Post {// Insert code hereThis.body
=bodyThis.author = author;this.viewCount = viewCount;}}Which statement should be inserted in the
placeholder on line 02 to allow for a variable to be setto a new instanceof a Post with the three attributes
correctly populated?
Option D : constructor() {
Correct Answer: C
QUESTION: 16
A developer is working on an ecommerce website where the delivery date is dynamicallycalculated based on
the current day. The code line below is responsible for this calculation.Const deliveryDate = new Date ();Due
to changes in the business requirements, the delivery date must now be today'sdate + 9 days.Which code
meets this new requirement?
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Correct Answer: A
QUESTION: 17
Option A : 'London'
Option B : undefined
Option C : An error
Option D : 'NaN'
Correct Answer: D
QUESTION: 18
Option A : super(plate)
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Correct Answer: A
QUESTION: 19
Answer :
QUESTION: 20
Which code should replace the placeholder comment on line 05 to highlight accounts that match the search
string'
Correct Answer: D
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
QUESTION: 21
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
QUESTION: 22
Correct Answer: D
https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps