title: How to use selectors with closest js
body: <p>I have a simple task to make condition work by the next fired selector, but it does not work... Why?</p>
  
  <pre><code>  const closestImgWrap = target.closest("[class^='imageWrap'] &gt; img")
  </code></pre>