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

Exam JavaScript-Developer-I All Questions
Exam JavaScript-Developer-I All Questions

View all questions & answers for the JavaScript-Developer-I exam

Salesforce Developer JavaScript-Developer-I Question # 7 Topic 1 Discussion

JavaScript-Developer-I Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

A developer at Universal Containers creates a new landing page based on HTML, CSS, and

JavaScript TO ensure that visitors have a goodexperience, a script named personaliseContext

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 personalizeWebsiteContent based onthe above

business requirement?


A.

document.addEventListener(‘’onDOMContextLoaded’, personalizeWebsiteContext);


B.

window.addEventListener(‘load’,personalizeWebsiteContext);


C.

window.addEventListener(‘onload’, personalizeWebsiteContext);


D.

Document.addEventListener(‘‘’DOMContextLoaded’ ,personalizeWebsiteContext);


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.