how can i call a range of numbers in an array?
<p>So im wanting to compare a number(pullNumb)(gotten by another function elsewhere) to a range of numbers in an array.</p>

<p>for this example, lets say:</p>

<pre><code>var pullNumb = 100; 
var morn_T= new Array(6,7,8,9,10,11,12,13,14,15,16,17,18,19);

if(pullNumb&gt;morn_T[1]){ document.write(" xyz ");

}
</code></pre>

<p>now instead of me writing out <code>morn_T[1],[2],[3];</code> etc...is there a way to shorten this?</p>

<p>ideally if i could add this range to a variable that would be great. but anything better than this long way ill gladly take.</p>

<p>i found some page on here but...man that page was WAY to advanced for me....had other languages so i got lost.</p>

<p>im still learning this so any tipslinks etc, i humble accept.</p>

<p>thanks in advance.</p>
