Skip to content

Commit 9dd47d3

Browse files
committed
Consistently store pages as a number
1 parent ecba7d7 commit 9dd47d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debugging/book-library/script.js

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

88
function populateStorage() {
99
if (myLibrary.length === 0) {
10-
let book1 = new Book("Robison Crusoe", "Daniel Defoe", "252", true);
10+
let book1 = new Book("Robison Crusoe", "Daniel Defoe", 252, true);
1111
let book2 = new Book(
1212
"The Old Man and the Sea",
1313
"Ernest Hemingway",
14-
"127",
14+
127,
1515
true
1616
);
1717
myLibrary.push(book1);

0 commit comments

Comments
 (0)