0% found this document useful (0 votes)
18 views10 pages

Exam JS-Dev-101 Dumps - Salesforce Certified JavaScript Developer

JS-Dev-101

Uploaded by

Adrian Rogers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views10 pages

Exam JS-Dev-101 Dumps - Salesforce Certified JavaScript Developer

JS-Dev-101

Uploaded by

Adrian Rogers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Salesforce

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?

Option A : NODE_DEBUG=true node server.js

Option B : DEBUG=http, https node server.js

Option C : NODE_DEBUG=http,https node server.js

Option D : DEBUG=true node server.js

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

Option A : The line 05 assertion passes.

Option B : The line 02 assertion passes.

Option C : The line 02 assertion fails.

Option D : The line 05 assertion fails.

Correct Answer: B,D

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);

Option B : Let x = ('1' + 2) == ( 6 * 2);

Option C : Let x = (1 + 2) == ( '6' / 2);

Option D : Let x = (1 + 2 ) == ( 6 / 2);

Correct Answer: B

QUESTION: 4

Why would a developer specify a package.jason as a developed forge instead of a dependency ?

Option A : It is required by the application in production.

Option B : It is only needed for local development and testing.

Option C : Other required packages depend on it for development.

Option D : It should be bundled when the package is published.

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' ?

Option A : document.getElementById(''status'').Value = 'Completed' ;

Option B : document.getElementById(''#status'')[removed] = 'Completed' ;

Option C : document.getElementById(''status'')[removed] = 'Completed' ;

Option D : document.getElementById(''.status'')[removed] = '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?

Option A : JSON.stringify and JSON.parse

Option B : JSON.serialize and JSON.deserialize

Option C : JSON.encode and JSON.decode

Option D : JSON.parse and JSON.deserialize

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.

Option D : Executes server-side JavaScript code to avoid learning a new language.

Option E : User non blocking functionality for performant request handling .

Correct Answer: A,C

QUESTION: 8

Given the code below:const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined
]);What is the value of copy?

Option A : -- [ \''false\'' , { } ]--

Option B : -- [ false, { } ]--

Option C : -- [ \''false\'' , false, undefined ]--

Option D : -- [ \''false\'' ,false, null ]--

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 A : ' 113Nan '

Option B : 14

Option C : ' true13 '

Option D : ' true13NaN '

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:

Option A : Boolean(var1 && var2)

Option B : var1 && var2

Option C : var1.toBoolean() && var2toBoolean()

Option D : Boolean(var1) && Boolean(var2)

Correct Answer: A,D

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

Correct Answer: B,D

QUESTION: 12

Which three actions can be using the JavaScript browser console?Choose 3 answers:

Option A : View and change DOM the page.

Option B : Display a report showing the performance of a page.

Option C : Run code that is not related to page.

Option D : view , change, and debug the JavaScript code of the page.

Option E : View and change security cookies.

Correct Answer: A,C,D

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?

Option A : Replace line 04 with console.log(input .value);

Option B : Replace line 03 with const input = document.getElementByName('input');

Option C : Replace line 02 with button.addEventListener(''onclick'', function() {

Option D : Replace line 02 with button.addCallback(''click'', function() {

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 A : super (body, author, viewCount) {

Option B : Function Post (body, author, viewCount) {

Option C : constructor (body, author, viewCount) {

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?

Option A : deliveryDate.setDate(( new Date ( )).getDate () +9);

Option B : deliveryDate.setDate( Date.current () + 9);

Option C : deliveryDate.date = new Date(+9) ;

Option D : deliveryDate.date = Date.current () + 9;

https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Correct Answer: A

QUESTION: 17

Refer to the code below:

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

Option A : 'London'

Option B : undefined

Option C : An error

Option D : 'NaN'

Correct Answer: D

QUESTION: 18

Refer to the following code:class Vehicle{constructor(plate){this.plate = plate;}}class Truck extends


Vehicle{constructor(plate, weight){//Missing codethis.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 aweight of 5000lb.

Option A : super(plate)

Option B : super.plate = plate

Option C : Vehicle.plate = plate

Option D : this.plate = plate

https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps
Correct Answer: A

QUESTION: 19

Given the HTML below:


Which statement adds the priority-account css class to the Applied Shipping row?

Answer :

QUESTION: 20

Given the JavaScript below:

Which code should replace the placeholder comment on line 05 to highlight accounts that match the search
string'

Option A : 'yellow' : null

Option B : null : 'yellow'

Option C : 'none1 : 'yellow'

Option D : 'yellow : 'none'

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

Option A : let x = arr. slice (2);

Option B : let x = arr. slice (0, 2);

Option C : let x arr.filter((a) => (return a

Option D : let x = arr.filter ((a) => 2 }) ;

Option E : let x =arr.splice(0, 2);

Correct Answer: A,B,C

QUESTION: 22

What is the result of the code block?

Option A : The console logs only 'flag'.

Option B : The console logs 'flag' and another flag.

Option C : An error is thrown.

Option D : The console logs 'flag' and then an error is thrown.

Correct Answer: D

https://www.dumpscore.com/salesforce/Javascript-Developer-I-braindumps

You might also like