JavaScript: Why does my program crash?
<p>I need help checking over any errors for this assignment. My internet browser crashes when I run this script! I wrote this script entirely myself so it may be incorrect! This is an assignment for school in which we are to use loops to output the months of the year (in an array).</p>

<p><strong>PS: The program ran great until I created the break/continue code!</strong></p>

<pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
 &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;


&lt;head&gt;

    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

    &lt;title&gt;Assignment 6: Steph Hussar&lt;/title&gt;

    &lt;script type="text/javascript"&gt;

        // Variable Declaration

        var monthArray = new Array ();
        monthArray[0]="January";
        monthArray[1]="February";
        monthArray[2]="March";
        monthArray[3]="April";
        monthArray[4]="May";
        monthArray[5]="June";
        monthArray[6]="July";
        monthArray[7]="August";
        monthArray[8]="September";
        monthArray[9]="October";
        monthArray[10]="November";
        monthArray[11]="December";


        // Using the for loop

        document.write("&lt;h4&gt;Using the for loop&lt;/h4&gt;");

        for(var count =0 ; count &lt; 12 ; count++)
        {
            document.write(monthArray[count] + "&lt;br /&gt;");
        }

        // Using the while loop

        document.write("&lt;h4&gt;Using the while loop&lt;/h4&gt;");

        var count = 0;
        while (count &lt; 12)
        {
            document.write(monthArray[count] + "&lt;br /&gt;");
            count++;
        }


        // Using for in loop

        document.write("&lt;h4&gt;Using for in Loop&lt;/h4&gt;");

        for(index in monthArray)
        {
            document.write(monthArray[index] +"&lt;br /&gt;");
        }



        // Using the Break

        document.write("&lt;h4&gt;Using the break when the month of March is found&lt;/h4&gt;")

            for(count = 0 ; count &lt; 12 ; count++)
            {
            if (count == 3)
                { 
                break;  
            }else{
             document.write(monthArray[count] + "&lt;br /&gt;");

            }
            }
            document.write("I broke out of the loop!");

        // Using the Continue

        document.write("&lt;h4&gt;Using the continue when the month of March is found&lt;/h4&gt;")      


            for(count = 0 ; count &lt; 12 ; count++)
            {
            if (count == 2)
                { 
                continue;  
            }else{
             document.write(monthArray[count] + "&lt;br /&gt;");

            }
            }
            document.write("I skipped March with a continue statement!");


    &lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;/body&gt;

    &lt;/html&gt;
</code></pre>
