title: How would I compare a number to a range of numbers in Javascript?
body: <p>I want to compare a range of numbers against a single number, basically like this in simple terms:</p>
  <pre><code>if X through Y equals Z, then do {}
  </code></pre>
  <p>What would be the proper way to do something like that in Javascript?</p>
  <p><strong>CLARIFICATION</strong></p>
  <p>I want to check if any number between <code>X and Y</code> is equal to <code>Z</code></p>