JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://www.broofa.com/Tools/JSLitmus/JSLitmus.js"></script>
<div class="links">
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a style="background-color: red;">hello</a>
<a style="background-color: blue;">hello</a>
<a style="background-color: green;">hello</a>
<a...

CSS

div.links {
    display: none;
}

JavaScript

function searchAll() {
    $("a");
}

function searchAllAndGetFirst() {
    $("a:first");
}
                
JSLitmus.test("a", searchAll);
JSLitmus.test("a:first", searchAllAndGetFirst);