What is the JavaScript code snippet to find all container elements with class “reveal”?
(a) var elements = document.getElementsByClassName(“reveal”);
(b) var elements = document.getElementByClassName(“reveal”);
(c) var elements = document.getElementByName(“reveal”);
(d) var elements = document.getElementsClassName(“reveal”);
I have been asked this question in an online quiz.
This interesting question is from JavaScript in Web Browsers in division Server-Side and Client-Side Scripting of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)