Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 7 Topic 1 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) 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 good experience, a script named personalizeWebsiteContent needs to be executed to do some custom initialization when the webpage is fully loaded with HTML content and all related files.

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


A.

document.addEventListener( ' DOMContentLoaded ' , personalizeWebsiteContent);


B.

document.addEventListener( ' onDOMContentLoaded ' , personalizeWebsiteContent);


C.

window.addEventListener( ' load ' , personalizeWebsiteContent);


D.

window.addEventListener( ' onload ' , personalizeWebsiteContent);


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.