how to grab a specific class in javascript code example Example: javascript get all classes var allHiddenElements = document.getElementsByClassName("hidden");