Salesforce Certified JavaScript Developer I Exam Practice Test

Page: 1 / 14
Total 224 questions
Question 1

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

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



Answer : A


Question 2

A developer at Universal Containers is creating their 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 initializations.

Which implementation should be used to call Fe:s:-a;::eHec5;te::.-.ter.: based on the business requirement above?



Answer : C


Question 3

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

What is the behavior?



Answer : C


Question 4

Refer to the code below:

const car = {

price:100,

getPrice:function(){

return this.price;

}

};

const customCar = Object.create(car);

customCar.price = 70;

delete customCar.price;const result = customCar.getPrice();

Whatis the value of result after the code executes?



Answer : A


Question 5

Given the HTML below:

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



Answer : A


Question 6

A developer has an is Dog function that takes one argument cat. They want to schedule the function to run every minute.

What is the correct syntax for scheduling this function?



Answer : A


Question 7

A developer has an ErrorHandler module that contains multiple functions.

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



Answer : B


Page:    1 / 14   
Total 224 questions