ExamGecko
Home Home / Salesforce / Certified JavaScript Developer I

Salesforce Certified JavaScript Developer I Practice Test - Questions Answers, Page 20

Question list
Search
Search

Related questions











A developer is leading the creation of a new web server for their team that will fulfill API requests from an existing client.

The team wants a web server that runs on Node.Js, and they want to use the new web framework Minimalist.Js. The lead developer wants to advocate for a more seasoned back-end framework that already has a community around it.

Which two frameworks could the lead developer advocate for?

Choose 2 answers

A.
Gatsby
A.
Gatsby
Answers
B.
Angular
B.
Angular
Answers
C.
Express
C.
Express
Answers
D.
Koa
D.
Koa
Answers
Suggested answer: B, C

Refer to the string below: const str = 'Salesforce'; Which two statements result in the word 'Sales'?

Choose 2 answers

A.
str.substr(1, 5);
A.
str.substr(1, 5);
Answers
B.
str.substr (0, 5);
B.
str.substr (0, 5);
Answers
C.
str.substring (1, 5);
C.
str.substring (1, 5);
Answers
D.
str.substring (0, 5);
D.
str.substring (0, 5);
Answers
Suggested answer: B, D

Given the JavaScript below:

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

A.
'yellow' : null
A.
'yellow' : null
Answers
B.
null : 'yellow'
B.
null : 'yellow'
Answers
C.
'none1 : "yellow'
C.
'none1 : "yellow'
Answers
D.
'yellow : 'none'
D.
'yellow : 'none'
Answers
Suggested answer: D

Refer to the following code:

Which two statement could be inserted at line 17 to enable the function call on line 18?

Choose 2 answers

A.
Object.assign (leo, tony);
A.
Object.assign (leo, tony);
Answers
B.
Object.assign (leo. Tiger);
B.
Object.assign (leo. Tiger);
Answers
C.
leo.roar = () => { console.log('They\'re pretty good!'); );
C.
leo.roar = () => { console.log('They\'re pretty good!'); );
Answers
D.
leo.prototype.roar = ( ) =>( console.log('They\'re pretty good!'); };
D.
leo.prototype.roar = ( ) =>( console.log('They\'re pretty good!'); };
Answers
Suggested answer: A, C

Which code change should be done for the console to log the following when 'Click me!' is clicked'

> Row log

> Table log

A.
Remove lines 13 and 14
A.
Remove lines 13 and 14
Answers
B.
Change line 10 to event.stopPropagation (false) ;
B.
Change line 10 to event.stopPropagation (false) ;
Answers
C.
Change line 14 to elem.addEventListener ('click', printMessage, true);
C.
Change line 14 to elem.addEventListener ('click', printMessage, true);
Answers
D.
Remove line 10
D.
Remove line 10
Answers
Suggested answer: B

A developer has an ErrorHandler module that contains multiple functions.

What kind of export should be leveraged so that multiple functions can be used?

A.
all
A.
all
Answers
B.
named
B.
named
Answers
C.
multi
C.
multi
Answers
D.
default
D.
default
Answers
Suggested answer: B

Refer to the code:

Given the code above, which three properties are set for pet1? Choose 3 answers

A.
name
A.
name
Answers
B.
owner
B.
owner
Answers
C.
type
C.
type
Answers
D.
canTalk
D.
canTalk
Answers
E.
size
E.
size
Answers
Suggested answer: C, D, E

Refer the following code

what is the value of array after code executes?

A.
[ 1, 2, 3, 5 ]
A.
[ 1, 2, 3, 5 ]
Answers
Suggested answer: A

Refer the code below.

x=3.14;

function myfunction() {

"use strict";

y=x;

}

z=x;

myFunction();

A.
A.
Answers
Suggested answer: A

Explanation:

Answer: A

Explanation:

Answer below in explanation:

Z is equal to 3.14

Use strict has effect only on line 5.

Line 5 throws an error

Refer to the string below.

Const str='Salesforce';

Which two statements results in the word 'Sales'?

A.
A.
Answers
Suggested answer: A

Explanation:

Answer: A

Explanation:

Answer below in

Explanation:

Str.substring(0,5);

Str.substr(0,5);

Total 224 questions
Go to page: of 23