Another question for this wonderful forum. Any help on the problem below would be greatly appreciated. Thanks!

I'm putting together a simple script that prompts the user for Student Names and then asks their marks. Here's the code so far:

PHP Code:
var sQuantity parseInt(prompt("Let's begin compiling our student database. How many students would you like to enter?""Number of Students"));

var 
sList = new Array();
var 
sMarks = new Array();

for (var 
count 0count sQuantitycount++) {
    
sList.push(prompt("Please enter the Student's Name""Students Name"));
}
for (var 
count 0count <sQuantitycount++) {
    
sMarks.push(prompt("Please enter " sList[0] + "'s average grade for this course.""Enter Average Grade"));
}

document.write(sList[0] + " " sList[1]+ " " " " sList[2]+ " " sList[3])
document.write(sMarks[0] + " " sMarks[1]+ " " " " sMarks[2]+ " " sMarks[3]) 
In the second "for" loop, it uses the sList[0] to display the student's name. How do I made the [0] go up after each loop so that the proper student name appears in each prompt?