how to use class in queryselector code example Example: queryselector document.querySelector(".example");