JSFiddle - React, Tailwind, and code Playground

by Thomas Aylott

HTML

<div></div>
<div></div>
<div></div>
<div><img /></div>
<div></div>
<div><img /></div>

JavaScript

console.assert(document.querySelectorAll('div:nth-child(6) img').length == 1, "QSA FAIL 1")
console.assert(document.querySelectorAll('div:nth-child(6) img').length == 1, "QSA FAIL 2")
console.assert(document.querySelectorAll('div:nth-child(6) img').length == 1, "QSA FAIL 3")
console.assert(document.querySelectorAll('div:nth-child(6) img').length == 1, "QSA FAIL 4")