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

JavaScript-Developer-I Exam Dumps - Salesforce Certified JavaScript Developer I (WI25)

Go to page:
Question # 4

Given the HTML below:

Which statement adds the priority-account css class to the Applied Shipping row?

A.

document.querySelector('#row-as').classList.add('priority-account');

Full Access
Question # 5

Refer to the code below:

let o = {

get js() {

let city1 = String("st. Louis");

let city2 = String(" New York");

return {

firstCity: city1.toLowerCase(),

secondCity: city2.toLowerCase(),

}

}

}

What value can a developer expect when referencing o.js.secondCity?

A.

Undefined

B.

‘ new york ’

C.

‘ New York ’

D.

An error

Full Access
Question # 6

Given the following code:

Let x =(‘15’ + 10)*2;

What is the value of a?

A.

3020

B.

1520

C.

50

D.

35

Full Access
Question # 7

Which three browser specific APIs are available for developers to persist data between page loads ?

Choose 3 answers

A.

IIFEs

B.

indexedDB

C.

Global variables

D.

Cookies

E.

localStorage.

Full Access
Question # 8

Given the following code:

document.body.addEventListener(‘ click ’, (event) => {

if (/* CODE REPLACEMENT HERE */) {

console.log(‘button clicked!’);

)

});

Which replacement for the conditional statement on line 02 allows a developer to

correctly determine that a button on page is clicked?

A.

Event.clicked

B.

e.nodeTarget ==this

C.

event.target.nodeName == ‘BUTTON’

D.

button.addEventListener(‘click’)

Full Access
Go to page: