Skip to content

Commit 747ec76

Browse files
committed
Fixed Ex4 - changed if condition
1 parent 7ab6cb4 commit 747ec76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Week2/homework/Masoud/js-exercises/EX4-theReadingList.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let books = [
1818
];
1919

2020
for (let i =0 ; i < books.length ; i++) {
21-
if(books[i].alreadyRead == true) {
21+
if(books[i].alreadyRead) {
2222
console.log(books[i].title + ' by ' + books[i].author);
2323
console.log('You already read \"' + books[i].title + '\"');
2424
} else {

0 commit comments

Comments
 (0)