Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 22 Topic 3 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 22 Topic 3 Discussion

JavaScript-Developer-I Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3

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.