ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 59 - Certified JavaScript Developer I discussion

Report
Export

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 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 on the above business requirement?

A.
document.addEventListener(''onDOMContextLoaded', personalizeWebsiteContext);
Answers
A.
document.addEventListener(''onDOMContextLoaded', personalizeWebsiteContext);
B.
window.addEventListener('load',personalizeWebsiteContext);
Answers
B.
window.addEventListener('load',personalizeWebsiteContext);
C.
window.addEventListener('onload', personalizeWebsiteContext);
Answers
C.
window.addEventListener('onload', personalizeWebsiteContext);
D.
Document.addEventListener('''DOMContextLoaded' , personalizeWebsiteContext);
Answers
D.
Document.addEventListener('''DOMContextLoaded' , personalizeWebsiteContext);
Suggested answer: B
asked 23/09/2024
Pang Guo Ming
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first