What should be used in the querySelector?

So, this is the order which is the better one. ok.

 function coverClickHandler(evt) {
    const cover = evt.currentTarget;
    hide(cover);
    const curtain = document.querySelector(".curtain");
    curtain.classList.add("slide");
    const thewrap = cover.parentElement.querySelector(".container");
    show(thewrap);
  }