queryselector javascript class name code example Example: queryselector document.querySelector(".example");