when to use queryselector using . in javascript code example Example: queryselector document.querySelector(".example");