ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 61 - Certified JavaScript Developer I discussion

Report
Export

Universal Containers recently launched its new landing page to host a crowd-funding campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, it creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below:

All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.

A.
Use the DOM inspector to prevent the load event to be fired.
Answers
A.
Use the DOM inspector to prevent the load event to be fired.
B.
Use the browser to execute a script that removes all the element containing the class ad-libraryitem.
Answers
B.
Use the browser to execute a script that removes all the element containing the class ad-libraryitem.
C.
Use the DOM inspector to remove all the elements containing the class ad-library-item.
Answers
C.
Use the DOM inspector to remove all the elements containing the class ad-library-item.
D.
Use the browser console to execute a script that prevents the load event to be fired.
Answers
D.
Use the browser console to execute a script that prevents the load event to be fired.
Suggested answer: C
asked 23/09/2024
Amine Alami
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first