I still can not get my coding to run. When I try to run the coding, a blank page shows up. Specifically, what do I need to do in order to get this simple coding to function? All I need is someone to look this over or test it and tell me what I need to get my coding to work.
<html>
<body>
<script language="JavaScript">
<!--
var classCtr;
var nmAnswer;
var clsGrade;
var totalvalue;
var gpatotalvalue;
gpatotalvalue = 0;
totalvalue = 0;
// set up one dimensional array
var myClass = new Array();
classnm = 0;
do
{
// start columns in second dimension of the array
myClass[classCtr] = new Array();
// get values from user and put in array
myClass[classCtr][0] = prompt ("Enter Class Name");
myClass[classCtr][1] = prompt ("Enter grade recieved");
myClass[classCtr][2] = {"A":4,"B":3,"C":2,"D":1,"F":0}[class[classCtr][1]];
myClass[classCtr][3] = prompt ("Enter credit hours")
// accumulate the total value
totalvalue = totalvalue + parseFloat(myClass[classCtr][3]);
// add one to the total number
classCtr++;
gpatotalvalue = gpatotalvalue + parseFloat(myClass[classCtr][1]);
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("<H2 align='center'>Grade Point Average</H2><br>");
document.write("<table bgcolor='Grey' align='center' border='1' cellpadding='4' width='75%'>");
document.write("<tr>");
document.write("<td>Class Name</td><td align='center'>Class Grade</td><td align='center'>Grade Credit</td>");
document.write("</tr>");
// Loop through array displaying html and javascript values in the array
while (clsGrade == 0 && classnm == 0)
{
document.write("<tr>");
document.write("<td>");
document.write (class[clsGrade][0]);
document.write("</td>");
document.write("<td align='center'>");
document.write (class[clsGrade][1]);
document.write("</td>");
document.write("<td align='center'>");
document.write (class[clsGrade][3]);
document.write("</td>");
document.write("</tr>");
document.write("</td>");
// increment the counter
clsGrade++;
}
// finish the table of data and display the total value
document.write("</Table>");
document.write("<br>");
document.write("<table bgcolor='grey' align='center' border='1' cellpadding='4' width='75%'>");
document.write("<tr>");
document.write("<td>Total value</td><td align='center'>" + totalvalue + "</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>GPA</td><td align='center'>" + gpatotalvalue + "</td>");
document.write("</tr>");
document.write("</Table>");
//-->
</script>
</font></body>
</html>