You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,11 +58,10 @@ function Book(title, author, pages, check) {
58
58
}
59
59
60
60
functionrender(){
61
-
lettable=document.getElementById("display");
62
61
consttableBody=document.getElementById("tbody");
63
62
tableBody.textContent="";
64
63
//insert updated row and cells
65
-
letlength=myLibrary.length;
64
+
constlength=myLibrary.length;
66
65
for(leti=0;i<length;i++){
67
66
constrow=tableBody.insertRow();// why (1) not i+1 insert <tr> with four <td>
68
67
consttitleCell=row.insertCell(0);// the table.rows and row.cells are HTMLCollection,not a real array, but they behave like array(indexed,length) . they are DOM collections
0 commit comments