How to addEventListener to multiple elements in a single line
<p>Example 1:</p>

<pre><code>element1.addEventListener("input", function() {
this function does stuff 
});
</code></pre>

<p>Example 2:</p>

<pre><code>element1 &amp;&amp; element2.addEventListener("input", function() {
this function does stuff
});
</code></pre>

<p>It might not be correct grammatically, but is there a way I can give two elements the same event listener at the same time (same line) instead of having to write them apart?</p>