JavaScript is not working
<p>My coding for JavaScript is not working and I can't figure out why. Can someone look it over and tell me what I am overlooking?</p>

<p>This is for my JavaScript assignment the link below is the assignment. Every time I have attempted to run the coding, it opens up to a blank page. But I can't see where my error(s) are. All I need is for someone to quickly read it and tell me what I can do to make it function.</p>

<p><a href="https://docs.google.com/fileview?id=16uNNiooLalkm1QlszrqEPr2qqMGLjhrtQx7qCLw-7d2ftygre8GM6hyceJHj&amp;hl=en" rel="nofollow">https://docs.google.com/fileview?id=16uNNiooLalkm1QlszrqEPr2qqMGLjhrtQx7qCLw-7d2ftygre8GM6hyceJHj&amp;hl=en</a></p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;body&gt;
&lt;script language="JavaScript"&gt;
&lt;!--
var classCtr;
var nmAnswer;
var clsGrade;
var totalvalue;
var gpatotalvalue;
gpatotalvalue = 0;
totalvalue = 0;
// set up one dimensional array
var class = new Array();
classnm = 0;

do
{
  // start columns in second dimension of the array
  class[classCtr] = new Array();

 // get values from user and put in array
 class[classCtr][0] = prompt ("Enter Class Name");
 class[classCtr][1] = prompt ("Enter grade recieved");
 class[classCtr][2] = {"A":4,"B":3,"C":2,"D":1,"F":0}[class[classCtr][1]];
 class[classCtr][3] = prompt ("Enter credit hours")


 // accumulate the total value
 totalvalue = totalvalue + parseFloat(class[classCtr][3]);

 // add one to the total number of cars
 classCtr++;
 totalvalue = totalvalue + parseFloat(class[classCtr][2]);
 nmAnswer = prompt ("Do you have more classes");
} while (nmAnswer == "yes");

  // set variable that is used as counter
 clsGrade = 0;

 // print out header for content
 document.write("&lt;H2 align='center'&gt;Grade Point Average&lt;/H2&gt;&lt;br&gt;");
 document.write("&lt;table bgcolor='Grey' align='center' border='1' cellpadding='4' width='75%'&gt;");
 document.write("&lt;tr&gt;");
 document.write("&lt;td&gt;Class Name&lt;/td&gt;&lt;td align='center'&gt;Class Grade&lt;/td&gt;&lt;td align='center'&gt;Grade Credit&lt;/td&gt;");
 document.write("&lt;/tr&gt;");

// Loop through array displaying html and javascript values in the array
while (clsGrade &lt; classnm)
  {
  document.write("&lt;tr&gt;");
  document.write("&lt;td&gt;");
  document.write (class[classCtr][0]);
  document.write("&lt;/td&gt;");
  document.write("&lt;td align='center'&gt;");
  document.write (class[classCtr][1]);
  document.write("&lt;/td&gt;");
  document.write("&lt;td align='center'&gt;");
  document.write (class[classCtr][3]);
  document.write("&lt;/td&gt;");
  document.write("&lt;/tr&gt;");

  document.write("&lt;/td&gt;");


  // increment the counter
   clsGrade++;
  }

// finish the table of data and display the total value
document.write("&lt;/Table&gt;");
document.write("&lt;br&gt;");
document.write("&lt;table bgcolor='grey' align='center' border='1' cellpadding='4' width='75%'&gt;");
document.write("&lt;tr&gt;");
document.write("&lt;td&gt;Total value&lt;/td&gt;&lt;td align='center'&gt;" + totalvalue + "&lt;/td&gt;");
document.write("&lt;/tr&gt;");
document.write("&lt;tr&gt;");
document.write("&lt;td&gt;GPA&lt;/td&gt;&lt;td align='center'&gt;" + gpatotalvalue + "&lt;/td&gt;");
document.write("&lt;/tr&gt;");
document.write("&lt;/Table&gt;");


 //--&gt;
&lt;/script&gt;
&lt;/font&gt;&lt;/body&gt;
&lt;/html&gt;
</code></pre>
