[Solved] I want to get a Javascript array in a HTML Table [closed]


create a string variable and append the html to it and do document.write for that variable.

var output = "";
for (var i = 0; i < 11; i++) {
    output += "<tr><td>" + i + "</td>";
    output += "<td>" + Classmates[i] + "," + Emails[i] + "</td></tr>";
}
document.write(output);

0

solved I want to get a Javascript array in a HTML Table [closed]