Pre-Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

JavaScript-Developer-I Salesforce Certified JavaScript Developer (JS-Dev-101) is now Stable and With Pass Result | Test Your Knowledge for Free

Exams4sure Dumps

JavaScript-Developer-I Practice Questions

Salesforce Certified JavaScript Developer (JS-Dev-101)

Last Update 1 day ago
Total Questions : 147

Dive into our fully updated and stable JavaScript-Developer-I practice test platform, featuring all the latest Salesforce Developer exam questions added this week. Our preparation tool is more than just a Salesforce study aid; it's a strategic advantage.

Our free Salesforce Developer practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about JavaScript-Developer-I. Use this test to pinpoint which areas you need to focus your study on.

JavaScript-Developer-I PDF

JavaScript-Developer-I PDF (Printable)
$54.25
$154.99

JavaScript-Developer-I Testing Engine

JavaScript-Developer-I PDF (Printable)
$59.5
$169.99

JavaScript-Developer-I PDF + Testing Engine

JavaScript-Developer-I PDF (Printable)
$74.55
$212.99
Question # 31

Refer to the code below:

01 function myFunction(reassign) {

02 let x = 1;

03 var y = 1;

04

05 if (reassign) {

06 let x = 2;

07 var y = 2;

08 console.log(x);

09 console.log(y);

10 }

11

12 console.log(x);

13 console.log(y);

14 }

What is displayed when myFunction(true) is called?

Options:

A.  

2 2 2 2

B.  

2 2 1 2

C.  

2 2 1 1

D.  

2 2 undefined undefined

Discussion 0
Question # 32

Considering type coercion, what does the following expression evaluate to?

true + ' 13 ' + NaN

Options:

A.  

' true13NaN '

B.  

' 113NaN '

C.  

14

D.  

' true13 '

Discussion 0
Question # 33

Given two expressions, exp1 and exp2, which two valid ways return the logical AND of the two expressions and ensure it is a Boolean?

Options:

A.  

Boolean(exp1 & & exp2)

B.  

Boolean(exp1) & & Boolean(exp2)

C.  

exp1 & exp2

D.  

Boolean(var1) & & Boolean(var2)

Discussion 0
Question # 34

let sampleText = " The quick brown fox jumps " ;

Which three expressions return true for a substring?

Options:

A.  

sampleText.includes( ' fox ' );

B.  

sampleText.indexOf( ' quick ' ) > -1;

C.  

sampleText.indexOf( ' fox ' ) !== -1;

D.  

sampleText.include( ' fox ' ) !== -1;

E.  

sampleText.indexOf( ' Quick ' ) !== -1;

Discussion 0
Question # 35

Refer to the following object:

01 const cat = {

02 firstName: ' Fancy ' ,

03 lastName: ' Whiskers ' ,

04 get fullName(){

05 return this.firstName + ' ' + this.lastName;

06 }

07 };

How can a developer access the fullName property for cat?

Options:

A.  

cat.fullName()

B.  

cat.get.fullName

C.  

cat.function.fullName()

D.  

cat.fullName

Discussion 0
Question # 36

A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.

The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server.js file will start the server. The developer wants to debug the Node.js server only using the terminal.

Which command can the developer use to open the CLI debugger in their current terminal window?

(With corrected typing errors: node_inspect → node inspect, node_start_inspect → node start inspect.)

Options:

A.  

node start inspect server.js

B.  

node inspect server.js

C.  

node server.js --inspect

D.  

node -i server.js

Discussion 0
Question # 37

Which statement accurately describes the behavior of the async/await keywords?

Options:

A.  

The associated function sometimes returns a promise.

B.  

The associated function can only be called via asynchronous methods.

C.  

The associated class contains some asynchronous functions.

D.  

The associated function is asynchronous, but acts like synchronous code.

Discussion 0
Question # 38

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

01 function Car(maxSpeed, color) {

02 this.maxSpeed = maxSpeed;

03 this.color = color;

04 }

05 let carSpeed = document.getElementById( ' carSpeed ' );

06 debugger;

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

Options:

A.  

A variable displaying the number of instances created for the Car object

B.  

The information stored in the window.localStorage property

C.  

The values of the carSpeed and fourWheels variables

D.  

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

Discussion 0
Question # 39

Refer to the code below:

01 let first = ' Who ' ;

02 let second = ' What ' ;

03 try {

04 try {

05 throw new Error( ' Sad trombone ' );

06 } catch (err) {

07 first = ' Why ' ;

08 throw err;

09 } finally {

10 second = ' When ' ;

11 }

12 } catch (err) {

13 second = ' Where ' ;

14 }

What are the values for first and second once the code executes?

Options:

A.  

first is Who and second is Where.

B.  

first is Why and second is Where.

C.  

first is Who and second is When.

D.  

first is Why and second is When.

Discussion 0
Question # 40

Corrected code:

function Person() {

this.firstName = " John " ;

}

Person.prototype = {

job: x = > " Developer "

};

const myFather = new Person();

const result = myFather.firstName + " " + myFather.job();

What is the value of result after line 10 executes?

Options:

A.  

" John Developer "

B.  

" John undefined "

C.  

Error: myFather.job is not a function

D.  

" undefined Developer "

Discussion 0
Get JavaScript-Developer-I dumps and pass your exam in 24 hours!

Free Exams Sample Questions