Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Salesforce Certified JavaScript Developer JS-Dev-101

Last Update 13 hours ago Total Questions : 217

The Salesforce Certified JavaScript Developer JS-Dev-101 content is now fully updated, with all current exam questions added 13 hours ago. Deciding to include JavaScript-Developer-I practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our JavaScript-Developer-I exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these JavaScript-Developer-I sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Salesforce Certified JavaScript Developer JS-Dev-101 practice test comfortably within the allotted time.

Question # 41

Refer to the HTML below:

Which JavaScript statement results in changing “ The Lion.”?

A.

document.querySelectorAll(‘$main $TONY’).innerHTML = ’“ The Lion

B.

document.querySelector(‘$main li:second-child’).innerHTML = “The Lion ’;

C.

document.querySelector(‘$main li.Tony’).innerHTML = ’“ The Lion ’;

D.

document.querySelector(‘$main li:nth-child(2)’),innerHTML = “ The Lion. ’;

Question # 42

In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.

Which two methods areused to address this ?

Choose 2 answers

A.

Use the document object instead of the window object.

B.

Assign variables to the global object.

C.

Create a new window object in the root file.

D.

Assign variables to module.exports and require them as needed.

Question # 43

Which two console logs outputs NaN ?

Choose 2 answers

A.

console.log(10/ Number(‘5’));

B.

console.log(parseInt(‘two’));

C.

console.log(10/ ‘’five);

D.

console.log(10/0);

Question # 44

A developer is asked to fix some bugs reported by users. To do that, the developer adds

abreakpoint for debugging.

Function Car (maxSpeed, color){

This.maxspeed =masSpeed;

This.color = color;

Let carSpeed = document.getElementById(‘ CarSpeed’);

Debugger;

Let fourWheels =new Car (carSpeed.value, ‘red’);

When the code execution stops at the breakpoint on line 06, which two types of information are

available in the browser console ?

Choose 2 answers:

A.

The values of the carSpeed and fourWheels variables

B.

A variable displaying the number of instances created for the Car Object.

C.

The style, event listeners and other attributes applied to the carSpeed DOM element

D.

The information stored in the window.localStorage property

Question # 45

Which statement parses successfully?

A.

JSON. parse ( " " foo " ' );

B.

JSON.parse ( " " foo ' " );

C.

JSON.parse ( " foo " );

D.

JSON.parse ( " foo " );

Question # 46

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?

A.

Add a listener to thewindow object to handle the DOMContentLoaded event

B.

Add a handler to the personalizeWebsiteContent script to handle the load event

C.

Add a listener to the window object to handle the lead event

D.

Add a handler to the personalizeWebsiteContent script tohandle the DOMContentLoaded event

Question # 47

Which two code snippets showworking examples of a recursive function?

Choose 2 answers

A.

Let countingDown = function(startNumber) {If ( startNumber > 0) {console.log(startNumber) ;return countingDown(startNUmber);} else {return startNumber;}};

B.

Function factorial ( numVar ) {If (numVar < 0) return;If ( numVar === 0 ) return 1;return numVar -1;

C.

Const sumToTen = numVar = > {If (numVar < 0)Return;return sumToTen(numVar + 1)};

D.

Const factorial =numVar = > {If (numVar < 0) return;If ( numVar === 0 ) return 1;returnnumVar * factorial ( numVar - 1 );};

Question # 48

A developer at Universal Containers is creating their new landing pagebased on HTML, CSS, and JavaScript. The website includes multiple external resources that are loaded when the page is opened.

To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage isloaded and there is no need to wait for the resources to be available.

Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

A.

windows,addEventListener( ' load ' , personalizeWebsiteContent);

B.

windows,addEventListener( ' DOMContent Loaded ' , personalizeWebsiteContent);

C.

windows,addEventListener( ' onload ' , personalizeWebsiteContent);

D.

windows,addEventListener( ' onDOMCContentLoaded ' , personalizeWebsiteContent);

Question # 49

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 is the resultof executing line 04?

A.

0

B.

6

C.

-Infinity

D.

RuntimeError

Question # 50

developer uses the code below to format a date.

After executing, what is the value offormattedDate?

A.

May 10, 2020

B.

June 10, 2020

C.

October 05, 2020

D.

November 05, 2020

Go to page: