Skip to content

Commit 13abce6

Browse files
committed
fix: use strict equality in populateStorage function
1 parent 43b06b0 commit 13abce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debugging/book-library/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.addEventListener("load", function (e) {
66
});
77

88
function populateStorage() {
9-
if (myLibrary.length == 0) {
9+
if (myLibrary.length === 0) {
1010
let book1 = new Book("Robison Crusoe", "Daniel Defoe", "252", true);
1111
let book2 = new Book(
1212
"The Old Man and the Sea",

0 commit comments

Comments
 (0)