0% found this document useful (0 votes)
210 views65 pages

Set 1

Uploaded by

patrickdare6633
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)
210 views65 pages

Set 1

Uploaded by

patrickdare6633
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/ 65

© Sentinel Secure ?

KRYTERION Version: 16.0.0


- Test Aids

I<”, KRYTERION” partner ®


Be cioea. TESTING SOLUTIONS |

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @

Time Remaining : 01:13:50

18 of 60. Given the following code:


Calculator

01 document .body.addEventListener('click', (event) => { |


02 if (/* CODE REPLACEMENT HERE */) { &Q
03 console.log('Button clicked!"'); |
04 } Pencil
& Paper
OS })e
a |

Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on the page is clicked? &

A. e.nodeTarget == this Written.


B. button.addEventListener('click') Matenats
c. o event.target.nodeName == 'BUTTON'
D. event.clicked

Mark this item for later review.

< Back Next > Review All § Submit Exam =


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION a
‘ Test Aids

Be cioea. TESTING SOLUTIONS


ae
Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


9
Multiple Books
Time Remaining : 01:12:52

22 of 60. A developer wants to define a function log to be used a few times on a single-file JavaScript script.

01 // Line 1 replacement
02 console.log('"LOG:', logInput);
03 }

Which two options can correctly replace line 01 and declare the function for use?

Choose 2 answers
A@ function leg(logInput) {

B. const log(loginInput) {

cg const log = (logInput) => {

D. function log = (logInput) {

Mark this item for later review.

Review All § Submit Exam


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION
Test Aids

partner
Ba cicea TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:12:45

23 of 60. A developer wants to use a module named universalContainersLib and then call functions from it.

How should a developer import every function from the module and then call the functions foo and bar?

A. import * from '/path/universalContainersLib.js';


universalContainersLib. foo ()7
Pencil
& Paper
universalContainersLib.bar ();

B. import {foo,bar} from '/path/universalCcontainersLib.js';


foo():
bar()? Written
Materials
iC. import all from '/path/universalContainersLib.js';
universalContainersLib.foo();
universalContainersLib.bar ();

Dn. import * as lib from '/path/universalContainersLib.js';


lib.foo();
lib. bar ();
© Sentinel Secure ? x

KRYTERION Version: 16.0.0


~\
I<”, KRYTERION” partner ®
B cic8m TESTING SOLUTIONS
Single Book

ned
——

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


Multiple Books
Time Remaining : 01:11:49

27 of 60. A developer wants to create an object from a function in the browser using the code below.

@1 function Monster(){ this.name - ‘hello’ }; {


@2 const m = Monster(); |
/
\ 4
What happens due to the lack of the new keyword on line 02? Pencil
& Paper
A. The m variable is assigned the correct object.

B. o window.name is assigned to ‘hello’ and the variable m remains undefined. &


IC: window.m is assigned the correct object. { z
D. The m variable is assigned the correct object but this.name remains undefined. pr

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

If KRYTERION' pares ®
Test Aids

BS ciceA TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @


Multiple Books
Time Remaining : 01:10:55

33 of 60. Which two console logs output NaN?

Choose 2 answers | |
A. console.log(10 / Number('5")); | |
} |

3.@ console.log(parseInt ' ("two')):


"yy: Pencil & Paper
Cc. console.log(10 / 0);

og console.loeg(10 / 'five');

Mark this item for later review. Matens

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. I KRYTERION™
© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

I<” KRYTERION” partner | fa)


Ba cicen. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:10:01

37 of 60. Given the JavaScript below:

01 function filterDOM(searchString){
02 const parsedSearchString = séarchString && searchString.toLowerCase ();
03 document.querySelectorAll('.account').forBach(account => {
04 const accountName = account. innerHTML.toLowerCase (); Pencil& Paper
os account.style.display = accountName.includes(parsedSearchString) ? /* Insert code here */;
06 be
07 }

7 Written
Which code should replace the placeholder comment on line 05 to hide accounts that do not match the search string? Mates

A. 'visible' : "hidden’

B.@ ‘block’ : ‘none’


c. ‘none’ : 'block'
D. "hidden' : ‘visible’

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

von ou
| KRYTERION’
Ba cicea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:07:03

44 of 60. Refer to the code below:

01 console.log('Start'):
02 Promise.resolve('Success').then(function(value) {
03 console.log('Success');
04 })F
OS console.log('End');

What is the output after the code executes successfully?

A. Start
Success
End
B. End
Start
Success
c. °o Start
End
Success
D. Success
Start
End
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION
‘ Test Aids

partner
Be cioea. TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:06:04

47 of 60. Refer to the code below:

01 let timedFunction = () => {


02 console.log('Timer called.');
03}:

OS let timerId = setTimeout (timedFunction, 1000):

Which statement allows a developer to cancel the scheduled timed function?

A. removeTimeout (timedFunction) ;

B. removeTimeout (timerId) ;
co clearTimeout (timerId);
D. clearTimeout (timedFunction) ;

Mark this item for later review.

< Back Next > Poa UL Submit Exam


ew Sentinel Secure x

KRYTERION Version: 16.0.0

[ZKRYTERION
Test Aids

partner
Ba cicea TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:05:57

48 of 60. Which code statement below correctly persists an object in localStorage?

A. const setLocalStorage = (storageKey, jsObject) => {


window. localStorage -persist (storageKey, jsObject):;

B. const setLocalStorage = (jsObject) => {


Pencil
& Paper
window. localStorage. connectObject (jsObject):

CO const setLocalStorage = (storageKey, jsObject) => { Written


window. localStorage -setiItem(storageKey, JSON.stringify (jsObject)); Materials

D. const setLocalStorage = (jsObject) => {


window. localStorage -setiItem(jsObject);

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


= Test Aids

I KRYTERION’
Be cicea. TESTING SOLUTIONS
partner ®
|

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @


Multiple Books
Time Remaining : 01:05:03

53 of 60. Refer to the code below:

01 let foodMenul = ['Pizza', ‘Burger’, "French fries'];


02 let finalMenu = foodMenul;
03 finalMenu.push('Garlic bread");

What is the value of foodMenul after the code executes?

A. ["Pizza', ‘Burger’, ‘French fries’, "Garlic bread"]

B.© ["Pizza', 'Burger', 'French fries']

Cc. ["Garlic bread', 'Pizza', 'Burger', "French fries']

D. ["Garlic bread']

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

If KRYTERION”
BS ciceA TESTING SOLUTIONS
partner |
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:04:00

60 of 60. Which option is true about the strict mode in imported modules?

A. Imported modules are in strict mode whether you declare them as such or not.

8. °o A developer can only reference notStrict () functions from the imported module.

Cc. Add the statement use strict = false; before any other statements in the module to enable not-strict mode.
D. Add the statement use non-strict; before any other statements in the module to enable not-strict mode.

Mark this item for later review.

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. |EKRYTERION™
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

IZ KRYTERION
Test Aids

partner
GLOBAL TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:18:14 Multiple Books

lof 60. Refer to the code below:

let productSkU = '8675309";

A developer has a requirement to generate SKU numbers that are always 19 characters long, starting with ‘sku’, and padded with zeros.

Which statement assigns the value »u0000000008675305?

A. productSKU = productSKU.pad@nd(16, '0°).padStart(19, ‘sku');

B. ProductSKU = productSKU.padEnd(16, '0").padStart('sku');

Cc. o productSkU = productSEU.padStart(16é, °0')-padatart(19, "sku");

D. preductSk0 = productSKU.padStart(19, '0')-padStart ("sku");

Mark this item for later review.

ss
2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. IE KRYTERION™
© Sentinel Secure ? x

KRYTERION Version: 16.0.0


ae
ly”, KRYTERION” partner Ba
Be aioe. TESTING SOLUTIONS =

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) >

Time Remaining : 01:18:01

1 of 60. Refer to the code below:


Calculator

let productSKU = '8675309' | |


|
A developer has a requirement to generate SKU numbers that are always 19 characters long, starting with 'sku', and padded with zeros. &
Pencil & Paper
Which statement assigns the value sku0000000008675309?

A. productSKU = preductSKU.padEnd(16, '0").padStart(19, "sku"): &


|
B. proeductSKU = productSKU.padEnd(16, '0').padStart('sku'); {

CO productSKU = productSKU.padStart(1é6, '0').padStart(19, 'sku'); sa


D. ProductSKU = productSkKU.padStart(19, "0").padStart('sku');

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) Test Aids

Time Remaining : 01:17:42

Single Book
2of 60. A developer wants to use a try...catch statement to catch any error that countSheep () may throw and pass it to a handleError () function.

What is the correct implementation of the try...catch?

AO try {
setTimeout (function() {
countSheep
();
}, 1000);
catch (6) {
handleError (e);

B. try {
countSheep
() 7
finally {
handleError (e);

¢. setTimeout (function() {
try {
countSheep
({);
catch (e) {
handleError (€);
}
}, 1000);

DB. try {
countSheep
()7
handleError (e€){
catch (es):
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:17:19 Single Book

3 of 60. Refer to the code below:

01 const exec = (item, delay) =>


02 new Promise (resolve => setTimeout((}) => resolve(item), delay));
03
04 asyne function runParallel() {
os const [resultl, result2, result3] = await Promise.all(
06 fexec("x', '100"), exec('y", '500"), exec('z', "100'))
07 de
06 return ‘parallel is done: ${result1}${result2)${result3}*;
oo }

Which two statements correctly execute the runParallel() function?

Choose 2 answers
A. runParallel ().then (data);

B. async runParallel().then (data); Materials


c@ runParallel () . then (function (data) {
return data;
Me
0.@ runParallel () .done (function (data){
return data;
Me

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Single Book
Time Remaining : 01:16:58

4of 60. Refer to the code below:

O1 let carl = new Promise((_, reject) =>


02 setTimeout (reject, 2000, "Car 1 crashed in"));
03 let car2 = new Promise(resolve => setTimeout (resolve, 1500, "Car 2 completed"));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, "Car 3 completed"));
os
06 Promise.race([carl, car2, car3])
07 .then(value => {
og let result = *${value) the race.*;
09 })
10 -catch(err => {
11 console.log("Race is cancelled.", err);
12 })e

What is the value of result when Promise. race executes? Materials

AO Car 2 completed the race.

B. Car 1 crashed in the race.


c; Race is cancelled.

D. Car 3 completed the race.

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


r Test Aid:
BA ciosat Testinc SOLUTIONS atl - —

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) Single Book

Time Remaining : 01:16:29

4of 60. Refer to the code below:

O01 let carl = new Promise((_, reject) =>


02 setTimeout (reject, 2000, "Car 1 crashed in"));
03 let car2 = new Promise (resolve => setTimeout (resolve, 1500, “Car 2 completed"));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, "Car 3 completed"));
0s
06 Promise.race(({carl, car2, car3]) i J
07 -then(value => { Pencil
& Paper
os let result = ‘${value) the race.*; —E
Sak

Bo
09
10
})
.catch(err => { US
ll g¢
console.log("Race is cancelled.", ’ err);Ve Written
1200 ))e Materials

What is the value of result when Promise. race executes?

A. o Car 2 completed the race.

B. Car 1 crashed in the race.


Cc. Race is cancelled.

D. Car 3 completed the race.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

If KRYTERION’
BS ciceA TESTING SOLUTIONS
partner ®
Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @
Multiple Books
Time Remaining : 01:16:16

5 of 60. Which statement accurately describes an aspect of promises?

A. .then() manipulates and returns the original promise.

B. oO Arguments for the callback function passed to .then() are optional.

Cc. .then() cannot be added after a catch.


D. Ina .then() function, returning results is not necessary since callbacks will catch the result of a previous promise.

Mark this item for later review.

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. |EIKRYTERION™
© Sentinel Secure ? x

KRYTERION —

IX”, KRYTERION” partner Si


cicen. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:16:10

6 of 60. Given the code below:

const copy = JSON.stringify([mew String({'false’), new Boolean(false), undefined]);

What is the value of copy?

A. "["false", {})"

B. "(false, {}]"

cg "["false", false, null]"

D. "["false", false, undefined)"

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION
‘ Test Aids

partner
Be cioea. TESTING SOLUTIONS
ae
Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


9
Multiple Books
Time Remaining : 01:16:04

7 of 60. A developer removes the HTML class attribute from the checkout button, so now it is simply:

<button>Checkout</button>.

There is a test to verify the existence of the checkout button, however it looks for a button with class="blue". The test fails because no
such button is found.

Which type of test category describes this test?

A. True positive

B. True negative
c. False positive

0. False negative

Mark this item for later review.

< Back Next > Cowan | Submit Exam


© Sentinel Secure ? x

KRYTERION —

IX”, KRYTERION” partner Si


cicen. TESTING SOLUTIONS
Single Book
=)

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @

Time Remaining : 01:15:56

8 of 60. Given two expressions varl and var2, what are two valid ways to return the logical AND of the two expressions and ensure it is data type
Calculator
Boolean?

Choose 2 answers |
A@ Boolean(varl) && Boolean (var2) |
je
B. varl.toBoolean() && var2.toBoolean() Pencil & Paper

& varl && var2 )


og Boolean(varl && var2) Sy

J
Written
Mark this item for later review. Materials

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. IE KRYTERION™
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:15:31 Single Book

9 of 60. Refer to the following code:

01 class Vehicle [{
02 constructor(plate) {
03 this.plate = plate;
04 }
os }
06
07 class Truck extends Vehicle {
os constructor (plate, weight){
os //Missing code
10 this.weight = weight;
il }
12 displayWeight() {
13 console.log(*The truck ${this.plate} has a weight of ${this.weight} lb.*);
14 }
Materials

let myTruck = new Truck('123AB", 5000);


8 myTruck.displayWeight
():

Which statement should be added to line 09 for the code to display ‘The truck 123AB has a weight of 5000 Ib.'?

Ao super (plate);

B. super.plate = plate;

Cc. Vehicle.plate = plate;


D. this.plate = plate;
© Sentinel Secure ? x

KRYTERION —

&> partner fz }
I<”, KRYTERION”
B cic8m TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:15:17

10 of 60. Considering type coercion, what does the following expression evaluate to?

true + '13' + NaN

AO "truel3NaN'
B. "true13'
Cc. 14

D. '113NaN'

Mark this item for later review.

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. IE KRYTERION™
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


‘ Test Aids

” KRYTERION partner
Be cioea, TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:15:11

11 of 60. A developer has a formatName function that takes two arguments, firstName and lastName and returns a string. They want to schedule the
function to run once after five seconds.

What is the correct syntax to schedule this function?

A. setTimeout (formatName(), 5000, "John", "BDoe");

B. setTimeout (formatName('John', ‘'Doe'), 5000);

iC... setTimout(() => { formatName("John', 'Doe') }, 5000);

ug setTimeout ('formatName', 5000, 'John", "Doe');

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

If KRYTERION”
BS ciceA TESTING SOLUTIONS
partner ®
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @


Multiple Books
Time Remaining : 01:15:03

12 of 60. Which statement parses successfully?


cul

9
8
A. o JSON. parse (""foo"');

B. JSON.parse (""foo'");

@
Cc. JSON.parse ("foo");
D. JSON.parse ("foo");

i
i:
Mark this item for later review.

ig
Materials
|

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. |f\KRYTERION™
© Sentinel Secure ? x

KRYTERION —

IX”, KRYTERION” &> partner a


Be cioea. TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:14:57

13 of 60. Given the following code:

01 let x = null;
02 console.log(typeof x);

What is the output of line 02?

A. "x"
B. “null”
Cc. o “object

D. "undefined"

Mark this item for later review.

Review All § Submit Exam


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:14:35


Single Book

14 of 60. Refer to the code below:

O01 let first = 'Who';


02 let second = 'What';
03 try {
o4 try {
throw new Error ('Sad trombone');
oO
oo

catch (err) {
In

first = 'Why';
038 throw err:
09 } finally {
10 second = 'When';

}
catch (err) {
Me

econd = 'Where';
we

w
oe
»

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

A; first is Why and second is Where.

B. first is Who and second is When.


c@g first is Why and second is When.

D. first is Who and second is Where.

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

I«”, KRYTERION’ partner


Bacon. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:14:25

15 of 60. A developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number
was 1.1.3.

Following semantic versioning format, what should the new package version number be?

A. 1.1.4

B.© 1.2.0

c. 1.2.3
D. 2.0.0

Mark this item for later review.

2.034 DYED Lon ONE DION tipsited All Dickie 2. Sh MINER


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


Single Book
Time Remaining : 01:14:07

16 of 60. Refer to the code below:

01 <html lang="en">
02 <table onclick="console.log('Table log');">
03 <tr id="rowl">
<td>Click me!</td>
</tr>
</table>
<script>
function printMessage (event) {
console.log('Row log');

let elem = document. getElementById("rowl');


elem.addEventListener('click', printMessage, false);
</script> Materials
15 </html>

Which code change should be made for the console to log only Row log when "Click me!’ is clicked?

A. Add event.removeEventListener(); toprintMessage function

B. Add event. removeEventListener(); to window.


onLoad event handler.
Cc. Add event.stopPropagation(); to window.
onLoad event handler.

Dn. Add event.stopPropagation(); to printMessage function.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

I KRYTERION’
Be cioea. TESTING SOLUTIONS
partner ®
}

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @

Time Remaining : 01:13:57

17 of 60. A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method,
Calculator
query, that returns an array. The developer does not need to verify how many times the method has been called.
|
Which two test approaches describe the requirement? -

Choose 2 answers ee
A. @ White box ea
B.| Stubbing
1
ce. Black box

D. Substitution

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:13:32


Single Book

19 of 60. A developer wants to create a simple image upload in the browser using the File API. The HTML is below:

<input type="file" onchange="previewFile() ">


<img sre=""_height="200" alt="Image preview..."/>

The JavaScript portion is:

01 function previewFile() {
02 const preview = document.querySelector('img');
03 const file = document. querySelector
("input [type=file]').files[0];
04 // line 4 code
05 reader.addEventListener ("load", () => {
06 preview.srce = reader.result;
07 }, false);
08 //line 6 code
09 }

In lines 04 and 08, which code allows the user to select an image from their local computer, and to display the image in the browser?

A. const reader = new File();


if (file) reader.readAsDataURL (file);

B. 04 const reader = new FileReader


();
68 if (file) URL.createObjectURL (file);

c. const reader = new File();


if (file) URL.createObjectuURL (file);

0. 04 const reader = new FileReader();


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION" bine Te
Test Aids

Be cLoea TESTING SOLUTIONS


Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:13:18

20 of 60. Refer to the code below:

01 new Promise((resolve, reject) => {


02 const fraction = Math. random();
03 if (fraction > 0.5) reject('fraction > 0.5, ' + fraction);
04 resolve (fraction);
os })
06 .then(() => console.log('resolved'"))
.Catch((error) => console.error (error) )
-finally(() => console.log('when am I called?'));
°
o

Written
Materials
When does Promise. finally on line 08 get called?

AO When resolved or rejected

B. When resolved and settled

Cc When resolved
D. When rejected

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION
5 Test Aids

partner Ba
Be cioea, TESTING SOLUTIONS
Single Book

w
=)

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) J

Time Remaining : 01:12:59

21 of 60. Refer to the code below:

let textValue = '1984';

Which code segment shows a correct way to convert this string to an integer?

A. let numberValue = textValue.toInteger();

B. let numberValue = Integer (textValue);

79g let numberValue = Number (textValue);

D. let numberValue = (Number) textValue;

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version:
im
16.0.0
Test Aids
a orce Certifie avascrip’ eveloper 1 - Multiple oice )

Time Remaining : 01:12:26



Single Book
24 of 60. Cloud Kicks has a class to represent items for sale in an online store, as shown below: ——

01 class Item {
02 constructor(name, price) {
Multiple Books
03 this.name = name;

a
04 this.price = price;
os }
06
07 formattedPrice() {
08 return '$' + String(this.price);
09 }
10 }

A new business requirement comes in that requests a ClothingItem class, that should have all of the properties and methods of the Item
class, but will also have properties that are specific to clothes.

Which line of code properly declares the ClothingItem class such that it inherits from Item?

AO class ClothingItem extends Item {

B. class ClothingItem implements Item {

Cc. class ClothingItem super Item {

D. class ClothingItem {

Mark this item for later review.

< Rack aes wim Submit Fxam


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


Single Book

Time Remaining : 01:12:11

25 of 60. Refer to the code below:

01 const event = new CustomEvent(


02 //Missing code
03 )3
04 obj.dispatchEvent (event);

A developer needs to dispatch a custom event called update to send information about recordId.

Which two options could a developer insert at the placeholder in line 02 to achieve this?

Choose 2 answers
A. ‘update', '123abc'

8.@ ‘update’, {
detail : {
recordId : '123abc'

}
c@ ‘update’, {
recordId : '123abc'
}
D. {type : ‘update’, recordId : "l23abc'}

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


z Test Aids

I<” KRY TERION partner


B cic8m TESTING SOLUTIONS ]
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


Multiple Books
Time Remaining : 01:11:58

26 of 60. Given the code below:

01 setCurrentUrl
();
02 console.log('The current URL is: ' + url);

@
03
04 function setCurrentUrl() { Pencil
& Paper
os url = window. location. href; ———
06 } =
Wy
What happens when the code executes? oO
Written
A. The url variable has global scope and line 02 throws an error. Materials

B. The url variable has local scope and line 02 throws an error.

C.. The url variable has local scope and line 02 executes correctly.
0. The url variable has global scope and line 02 executes correctly.

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version:

16.0.0
Test Aids

I<”, KRYTERION” partner


Be cioea. TESTING SOLUTIONS
ae
Book

8
——

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)


Multiple Books
Time Remaining : 01:11:38

28 of 60. A developer has the function, shown below, that is called when a page loads.

function onLoad() {
console.log("Page has loaded!");

Where can the developer see the log statement after loading the page in the browser?

A. Terminal running the web server

B. o Browser JavaScript console


Gc. On the webpage
D. Browser performance tools

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


= Test Aids

| KRYTERION”
BS cicen TESTING SOLUTIONS
partner ®
Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:11:32

29 of 60. Refer to the HTML below:

<div id="main">
<div id="card-00">This card is smaller.</div>
<div id="card-01">The width and height of this card is determined by its contents.</div>
</div>

Which expression outputs the screen width of the element with the ID card-01?

A. document . getElementById('card-01') .innerHTML.length*é

B. °o document .getElementById('card-01') .getBoundingClientRect () .width

Cc. document .getElementById('card-01") .width

D. document .getElementById('card-01') .style.width

Mark this item for later review.

Review All § Submit Exam


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


z Test Aids

li” KRYTERION’
B cicea TESTING SOLUTIONS
partner
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) i)


Multiple Books
Time Remaining : 01:11:24

30 of 60. Universal Containers (UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions anny
that might cause this problem. To verify this, the developer decides to execute everything and log the time each of these three suspicious
functions consumes. |

01 console.time ("Performance"); &


02 Pencil & Paper
03 maybeAHeavyFunction ();
04 =

05 5 thiscouldTakeTooLong();
06
07 M: h
7 Written
07 () r
orMaybeThisoOne Mater
08
09 console.endTime ("Performance");

Which function can the developer use to obtain the time spent by every one of the three functions?

AO console. timeLog ()

B. console.timeStamp ()

Cc. console.trace()
D. console.getTime ()
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

1 KRYTERION
Test Aids

partner
Be acen TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:11:11

31 0f 60. Refer to the code below:

for (let number = 2; number <= 5; number += 1) {


// Insert code statement here

Pencil
& Paper
The developer needs to insert a code statement in the location shown. The code statement has these requirements:
1. Does not require an import
2. Logs an error when the Boolean statement evaluates to false
3. Works in both the browser and Node.js
Written
Which statement meets these requirements? Materials

A. console.assert (number % 2 === 0);

B. assert(number % 2 === 0);


co console.error(number & 2 === 0);

D. console.debug(number % 2 === 0);

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

r KRYTERION partner
Ba cicen. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:11:03

32 of 60. 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.

01 let res = sum3([(1l, 4, 1))?


02 console.assert
(res === 6);
03 Pencil
& Paper
04 res = sum3([{1, 5, 0, 5])?
05 console.assert(res === 6);

A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.
Written
Materials
Which two results occur when running this test on the updated sum3 function?

Choose 2 answers
AL The line 05 assertion passes.

5.@ The line 02 assertion passes.

c. The line 02 assertion fails.


og The line 05 assertion fails.

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


- Test Aids

I<”, KRYTERION” partner ®


Be cioea, TESTING SOLUTIONS |
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @


Multiple Books
Time Remaining : 01:10:47

34 of 60. A developer wants to set up a secure web server with Node.js. The developer creates a directory locally called app-server, and the first file
is app-server/index.js.

Without using any third-party libraries, what should the developer add to index. js to create the secure web server?

A. const server = require ('secure-server');

B. const http = require('http');


Cc. const tls = require('tls');

0.@ const https = require('https');

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

I<” KRYTERION” partner | fa)


Ba cicen. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:10:38

35 of 60. A developer creates a class that represents a blog post based on the requirements that a Post should have a body, author, and view count.
The code is shown below:

O01 class Post {


02 // Insert code here
03 this.body = body;
04 this.author = author;
05 this.viewCount = viewCount;
3 ah
oo

Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instance of a Post with the three
attributes correctly populated?

Ag constructor (body, author, viewCount) {

B. constructor() {
Cc. super (body, author, viewCount) {

D. function Post(body, author, viewCount) {

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

If KRYTERION’
Ba aicen. TESTING SOLUTIONS
partner | @
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:10:22

36 of 60. 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:

<!-- This is an ad -->

<div class="ad-library-item ad-hidden" onload="myFunction


() "> Pencil & Paper
<img src="/ad-library/ad01.gif" />
</div>
WS
All the elements include the same ad-library-item class. They are hidden by default, and they are randomly displayed while the user
navigates through the page.

Tired of all the ads, what can the developer do to temporarily and quickly remove them?

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

B.© Use the browser console to execute a script that removes all the elements containing the class ad-library-item.

Gc. Use the browser console to execute a script that prevents the load event to be fired.
D. Use the DOM inspector to remove all the elements containing the class ad-library-item.

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

{KRYTERION
Test Aids

partner
Ba cicen. TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:09:50

38 of 60. Refer to the code snippet below:

01 let array = (1, 2, 3, 4, 4, 5, 4, 4):


02 for (let i = 0; i < array.length; i++) {
03 if (array[i] === 4) {
04 array.splice(i, 1);
os }
06 )

What is the value of array after the code executes?

AL [l, 2, 34 4+ Se 4, 4]

B. Et, 2), 3s. 5)


c.@O [ls 2, 35 40 4, 5S, 4]
D. (1, 2+ 3, 45 Sp 4)

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


ae
I<”, KRYTERION” partner Ba
Be cicea TESTING SOLUTIONS a

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) >


Multiple Books
Time Remaining : 01:09:41

39 of 60. 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 having
latency 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?

A. NODE_DEBUG=true node server.js

B. DEBUG=http, https node server.js

iC... NODE_DEBUG=http,https node server.js

ug DEBUG=true node server.js

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[Z/KRYTERION”
Test Aids

partner
Ba cicen. TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:09:35

40 of 60. Refer to the code below:

01 function changeValue(param) {
02 param = 5;
03 }
et
ao

u
a
oH Gb
ooo

changeValue (b) ;
oI

const result =a+' - ' + b

What is the value of result when the code executes?

AO 10-10

B. 5-5

Cc 10-5
D. 5-10

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


my Test Aids

]
41 of 60. Refer to the code:

Single Book
01 function Animal (size, type) {
02 this.type = type || ‘Animal';
03 this.canTalk = false;
o4 }
os
06 Animal.prototype.speak = function() {
07 if (this.canTalk) {
08 console.log("It spoke!");
os }

10);
il
12 let Pet = function(size, type, name, owner) {
13 Animal.call(this, size, type);
14 this.size = size;
15 this.name = name;
16 this.owner = owner;
17 }
18
19 Pet.prototype = Object.create (Animal .prototype):
20 let petl = new Pet();

Given the code above, which three properties are set for peti?

Choose 3 answers
AL speak

B. Qa owner
e. a type
D. name

E. canTalk
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:07:23

42 of 60. Given the code below:

01 setTimeout(() => {
02 console.log(1);
be O}F
im )
oO «

console.log(2);
new Promise((resolve, reject) => {
o oo

setTimeout(() => {
IA

reject (console.log(3))i
08 =}, 1000);
9 }).catch(() => {
10 console.log(4);
11 ))e
12 console.log(5):

What is logged to the console?

AO 25134

B. 21435
Cc. 12534

D. 12435

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[KRYTERION
Test Aids

partner
Be cLoea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:07:13

43 of 60. Refer to the code below:

01 function Person(firstName, lastName, eyeColor) {


02 this.firstName = firstName;
03 this.lastName = lastName;
04 this.eyeColor = eyecolor;
os }
Ft

06 Person.job = 'Developer';
3

const myFather = new Person('John', "Doe');


es
o

console.log(myFather.job) ;
o;°o
©

What is the output after the code executes?

A. ReferenceError: eyeColor is not defined

B. ReferenceError: assignment to undeclared variable "Person"

Cc. °o undefined
D. Developer

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


ae Poet Test Aids

‘ a GLOBAL TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:06:37

45 of 60. A developer has two ways to write a function:

Option A:
@1 function Monster() {

@2 this.growl - () => {
@3 console. log(“Grr!*);

a}
@5 }

Option B:
@1 function Monster() {};
@2 Monster. prototype.growl = () => {
@3 = console. log("Grr!"); Written
ea } Materials

After deciding on an option, the developer creates 1000 monster objects.

How many growl methods are created with Option A and Option B?

A. 1 growl method Is created regardless of which option is used.

B. 1000 growl methods are created regardless of which option is used.

co 1000 growl methods are created for Option A. 1 growl method is created for Option B.
D. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
© Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION —_ &)
Test Aids

Ba cicea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:06:25

46 of 60. 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 3}
0S let carSpeed = document.getElement3yId('carSpeed');
om C

debugger;
Oo

let fourwheels = new Car(carSpeed.value, ‘red');


JI
>

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. The style, event listeners and other attributes applied to the carSpeed DOM element
C: A variable displaying the number of instances created for the Car object
.g The information stored in the window.localStorage property

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

[ZKRYTERION —_ &)
Test Aids

Ba cicea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:06:15

46 of 60. 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 3}
0S let carSpeed = document.getElement3yId('carSpeed');
om C

debugger;
Oo

let fourwheels = new Car(carSpeed.value, ‘red');


JI
>

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. The style, event listeners and other attributes applied to the carSpeed DOM element
C: A variable displaying the number of instances created for the Car object
.g The information stored in the window.localStorage property

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

[Z/KRYTERION”
Test Aids

partner
Ba cicea TESTING SOLUTIONS
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:05:50

49 of 60. Refer to the following code block:

01 let array = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10


02 let output = 0;
03
04 for (let num of array) {
os if (output > 10) {
06 break;
07 }
08 if (num & 2 == 0) {
Written
09 continue; Materials
10 }
11 = output += num;
12 }

What is the value of output after the code executes?

A. ii

B. 36
Cc. 25

0. 16
© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

IX”, KRYTERION’ partner


cicen. TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:05:41

50 of 60. Refer to the code below:

let inArray = [ [1,2] , [3,4,5] ];

Which two statements result in the array [ 1, 2, 3, 4, 5 ]?

Choose 2 answers
A8 [].concat.apply({], inArray);

B.@ [).concat(...inArray);
c. {]).concat.apply(inArray, []);
D. [ -concat([...inArray]);

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

WBA. GLOBAL TESTING SOLUTIONS = Test Aids

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) Single Book

Time Remaining : 01:05:21

51 of 60. A developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server
functionality.

The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any
issues that the server has while booting up.

Given the code and the information the developer has, which code logs an error at boot time with an event?

A. Ol server.error((error) => {
02 console.log('ERROR', error);
03 }):

Bg O01 server.on("error', (error) => {


02 console.log('ERROR', error);
03 }):

1 server.catch((error) => {
}2 console.log('ERROR', error);
3

02 server.start();
03 } catch(error) {
04 console.log('ERROR', error);
os }
© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

If KRYTERION’
BS ciceA TESTING SOLUTIONS
partner ®
Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @
Multiple Books
Time Remaining : 01:05:12

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

Choose 2 answers
A. The function generates 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 parent This, which is the enclosing lexical scope
& If the function has a single expression in the function body, the expression will be evaluated and implicitly returned.

D. The function uses the this from the enclosing scope.

Mark this item for later review.

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. |EKRYTERION™
© Sentinel Secure ? x

KRYTERION Version: 16.0.0

I KRYTERION’
Be cicea. TESTING SOLUTIONS
partner ®
Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) |
Multiple Books
Time Remaining : 01:04:57

54 of 60. A developer at Universal Containers creates a 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 initialization.

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

A. window.addEventListener('onload', personalizeWebsiteContent);:

B. °o window. addEventListener('load', personalizeWebsiteContent) ;


Cc. document .addEventListener (‘DOMContentLoaded', personalizeWebsiteContent);

D. document .addEventListener (‘onDOMContentLoaded’, personalizeWebsiteContent) ;

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0

—_ ou
I KRYTERION’
Be. cicea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:04:49

55 of 60. A developer uses the code below to format a date.

01 const date = new Date(2020, 05, 10);


02 const dateDisplayOptions = {
03 year: ‘numeric’
04 month: ‘long',
os day: ‘numeric’
om C

06 );
JI

const formattedDate = date.toLocaleDateString('en', dateDisplayOptions);:


°
o

After executing, what is the value of formattedDate?

A.@ May 10, 2020


B. June 10, 2020

Cc. October 05, 2020


D. November 05, 2020

Mark this item for later review.


ew Sentinel Secure ? x

KRYTERION Version: 16.0.0

IZ KRYTERION’ QP vorve
‘ Test Aids

Be cicea TESTING SOLUTIONS

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:04:37

56 of 60. Refer to the code below:

const pi = 3.1415926;

What is the data type of pi?

A. Double
B. Decimal

C.@ Number
D. Float

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

If KRYTERION’
BS ciceA TESTING SOLUTIONS
FH vw ®
Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) @


Multiple Books
Time Remaining : 01:04:31

57 of 60. Which option is a core Node.js module?

A. los

8. locale

Cc memory
D. °o path

Mark this item for later review.

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. |EIKRYTERION™
© Sentinel Secure ? x

KRYTERION Version: 16.0.0

[:KRYTERION’ _
z Test Aids

De oucen TESTING SOLUTIONS


Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21) i)


Multiple Books

S
Time Remaining : 01:04:24

58 of 60. Refer to the code snippet: Gander

01 function getAvailabilityMessage
(item) { |
02 if (getAvailability(item)) { &
03 var msg = “Username available"; i J
04 } Pencil
& Paper
os return msg;


A developer writes this code to return a message to a user attempting to register a new username. If the username is available, a variable :
named msg is declared and assigned a value on line 03. pri

What is the return value of msg when getAvailabilityMessage ("newUserName") is executed


and getAvailability("newUserName") returns false?

A. °o undefined
B. “msg is not defined"
Cc. "Username available"

D. “newUserName"

Mark this item for later review.


=
ew Sentinel Secure ? x

KRYTERION Version: 16.0.0


Test Aids

r KRYTERION
Nersn TESTING SOLUTIONS
partner

Single Book

Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Remaining : 01:04:13

59 of 60. Refer to the code below:

01 const objBook = {
02 title: 'JavaScript'
03 }3
04 Object .preventExtensions (objBook) ; Pencil
& Paper
05 const newObjBook = objBook;
06 newObjBook.author = 'Robert';

What are the values of objBook and newObjBoo & respectively?


Written
A. { author: "Robert", title: "JavaScript" } Materials
undefined
B. { author: "Robert", title: "JavaScript"
{ author: "Robert", title: "JavaScript"
author: "Robert"
9

author: "Robert", title: "JavaScript"


0. title: "JavaScript" }
title: “JavaScript” }

Mark this item for later review.


© Sentinel Secure ? x

KRYTERION Version: 16.0.0


om Test Aids
Time Remaining : 01:03:34

Your assessment responses are listed below. Asterisks(*) next to the item number indicate you have marked that item for review. Click on the item number ®
to return to the desired item. When you are ready to submit your assessment, click the 'Submit Exam’ button below to submit your responses and end the Binge 20a).
assessment. i

Assessment Summary @
Number of Items Answered: 60 Multiple Books
Number of Items Unanswered: 0
Number of Items Marked for Review: 0 g

Answers SS
Calculator
Lc 2A 3.DC 4.A
2B 6.C Z.D 8. DA x
9A 10. A 11.D 12.A Q
13.C 14.¢ 15.8 16. D e
17. AD 18. C 19.D 20.4 Pencil & Paper
2LC 22, AC 23. D 24.4
25..BC 26.0 22.8 28.8 a
29.8 30.A aL 32..DB WS |
33. DB 34.D 33.4 36.68

41. CBE 42.4 43.C 44.C Matenats


45.C 46. BD 47,.C 48.C
49. D 50. AB 21.6 52. DA
33. B 54. B 53.A 36.C
s7.D 58. A 39. D 60.B
© Sentinel Secure ? x

KRYTERION Version: 16.0.0

1 KRYTERION
GLOBAL TESTING SOLUTIONS
partes
Salesforce Certified JavaScript Developer I - Multiple Choice (SP21)

Time Taken: 42 minutes of 105 minutes total


Result: Pass
Variables, Types, and Collections: 71
Objects, Functions, and Classes: 80
Browser and Events: 100
Debugging and Error Handling: 50
Asynchronous Programming: 75
Server Side JavaScript: 80
Testing: 25
Congratulations! You have successfully completed the certification exam to become a Salesforce Certified JavaScript Developer I. Welcome to the Salesforce worldwide
community of Certified Professionals!

Exit Test

2021 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved. IE KRYTERION™

You might also like