How do i create a loop to iterate between 2 numbers(years)?
<p>I have a problem where i need to iterate been two different numbers or years. So for example. My start year is 1993 and my end year is 2014. How do i print out the year for year in between starting at 1993 and ending at 2014? Also for each year printed i need to add it to an array.</p>

<p>My assumption was to use a While loop like</p>

<pre><code>var myYear = [];
var theYear;

while(startyear &lt;= endYear){

myYear.push(startyear)
startyear++
}
</code></pre>
