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 2 days ago
Total Questions : 219

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)
$43.75
$124.99

JavaScript-Developer-I Testing Engine

JavaScript-Developer-I PDF (Printable)
$50.75
$144.99

JavaScript-Developer-I PDF + Testing Engine

JavaScript-Developer-I PDF (Printable)
$63.7
$181.99
Question # 21

Given the following code, what is the value of x?

let x = ‘15' + (10 * 2);

Options:

A.  

35

B.  

50

C.  

1520

D.  

3020

Discussion 0
Question # 22

A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:

Import printPrice from ‘/path/PricePrettyPrint.js’;

Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?

Options:

A.  

printPrice must be be a named export

B.  

printPrice must be an all export

C.  

printPrice must be the default export

D.  

printPrice must be a multi exportc

Discussion 0
Question # 23

A developer tries to retrieve all cookies, then sets a certain key value pair in the cookie. These statements are used:

Question # 23

What is the behavior?

Options:

A.  

Cookies are read, but the key value is not set because the value is not URL encoded.

B.  

Cookies are not read because line 01 should be document, cookies, but the key value is set and all cookies are wiped.

C.  

A Cookies are read and the key value is set, the remaining cookies are unaffected.

D.  

Cookies are read and the key value is set, and all cookies are wiped.

Discussion 0
Question # 24

Refer the following code

Question # 24

what is the value of array after code executes?

Options:

Discussion 0
Question # 25

A developer wrote a fizzbuzz function that when passed in a number, returns the

following:

● ‘Fizz’ if the number is divisible by 3.

● ‘Buzz’ if the number is divisible by 5.

● ‘Fizzbuzz’ if the number is divisible by both 3 and 5.

● Empty string if the number is divisible by neither 3 or 5.

Which two test cases will properly test scenarios for the fizzbuzz function?

Choose 2 answers

Options:

A.  

let res = fizzbuzz(5);

console.assert ( res === ‘ ’ );

B.  

let res = fizzbuzz(15);

console.assert ( res === ‘ fizzbuzz ’ )

C.  

let res = fizzbuzz(Infinity);

console.assert ( res === ‘ ’ )

D.  

let res = fizzbuzz(3);

console.assert ( res === ‘ buzz ’ )

Discussion 0
Question # 26

A developer has the following array of student test grades:

Let arr = [ 7, 8, 5, 8, 9 ];

The Teacher wants to double each score and then see an array of the students

who scored more than 15 points.

How should the developer implement the request?

Options:

A.  

Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))

B.  

Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;

C.  

Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);

D.  

Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));

Discussion 0
Question # 27

Refer to the string below:

const str = 'Salesforce';

Which two statements result in the word 'Sales'?

Choose 2 answers

Options:

A.  

str.substr(1, 5);

B.  

str.substr (0, 5);

C.  

str.substring (1, 5);

D.  

str.substring (0, 5);

Discussion 0
Question # 28

At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an Implementation from one team:

Question # 28

What is the output of the code execution?

Options:

A.  

Hello John Doe

B.  

Hello Dan

C.  

Hello Dan Doe

D.  

SyntaxError: Unexpected token in JSON

Discussion 0
Question # 29

What are two unique features of functions defined with a fat arrow as compared to normal function definition?

Choose 2 answers

Options:

A.  

The function generated its own this making it useful for separating the function’s scope from its enclosing scope.

B.  

The function receives an argument that is always in scope, called parentThis, which is the enclosing lexical scope.

C.  

If the function has a single expression in the function body, the expression will be evaluated and implicit returned.

C.  

The function uses the this from the enclosing scope.

Discussion 0
Question # 30

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:

Question # 30

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.

Options:

A.  

Use the DOM inspector to prevent the load event to be fired.

B.  

Use the browser to execute a script that removes all the element containing the class ad-library-item.

C.  

Use the DOM inspector to remove all the elements containing the class ad-library-item.

D.  

Use the browser console to execute a script that prevents the load event to be fired.

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

Free Exams Sample Questions