We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790c614 commit bd070c0Copy full SHA for bd070c0
debugging/book-library/script.js
@@ -79,9 +79,9 @@ function render() {
79
let pagesCell = row.insertCell(2);
80
let wasReadCell = row.insertCell(3);
81
let deleteCell = row.insertCell(4);
82
- titleCell.innerHTML = myLibrary[i].title;
83
- authorCell.innerHTML = myLibrary[i].author;
84
- pagesCell.innerHTML = myLibrary[i].pages;
+ titleCell.textContent = myLibrary[i].title;
+ authorCell.textContent = myLibrary[i].author;
+ pagesCell.textContent = String(myLibrary[i].pages);
85
86
//add and wait for action for read/unread button
87
let changeBut = document.createElement("button");
0 commit comments