JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Hi there</h1>
<h2>Bye now</h2>
<h2>Yo</h2>

JavaScript

var a = $('h1');
var b = $('h2');
a = a.add(b);
console.log( a.length );
a.css({'color':'red'});