ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 179 - Certified JavaScript Developer I discussion

Report
Export

A developer at Universal Containers is creating their new landing page based on HTML, CSS, and JavaScript. The website includes multiple external resources that are loaded when the page is opened.

To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage Is loaded and there Is no need to wait for the resources to be available.

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

A.
windows,addEventListener('load', personalizeWebsiteContent);
Answers
A.
windows,addEventListener('load', personalizeWebsiteContent);
B.
windows,addEventListener('DOMContent Loaded ', personalizeWebsiteContent);
Answers
B.
windows,addEventListener('DOMContent Loaded ', personalizeWebsiteContent);
C.
windows,addEventListener('onload', personalizeWebsiteContent);
Answers
C.
windows,addEventListener('onload', personalizeWebsiteContent);
D.
windows,addEventListener('onDOMCContentLoaded', personalizeWebsiteContent);
Answers
D.
windows,addEventListener('onDOMCContentLoaded', personalizeWebsiteContent);
Suggested answer: A
asked 23/09/2024
Walter van der Heijden
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first