Skip to content

Commit fa7a257

Browse files
committed
Update the function populateStorage ro store the page counts as numbers instead of strings.
1 parent 96dfd25 commit fa7a257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debugging/book-library/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ window.addEventListener("load", function () {
77

88
function populateStorage() {
99
if (myLibrary.length === 0) {
10-
let book1 = new Book("Robinson Crusoe", "Daniel Defoe", "252", true);
11-
let book2 = new Book("The Old Man and the Sea", "Ernest Hemingway", "127", true);
10+
let book1 = new Book("Robinson Crusoe", "Daniel Defoe", 252, true); // Changed "252" to 252
11+
let book2 = new Book("The Old Man and the Sea", "Ernest Hemingway", 127, true); // Changed "127" to 127
1212
myLibrary.push(book1, book2);
1313
}
1414
}

0 commit comments

Comments
 (0)