London | May-2025 | Sisay Mehari | Reading List #608
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
📚 Reading List App
This pull request adds a dynamic reading list that:
Displays a list of books with title, author, and cover image
Visually distinguishes between books that have been read and unread
✅ What’s included
HTML scaffold with a #reading-list inside #content
JavaScript logic that:
Loops through the books array
Creates a list item (
Adds
elements for title and author
Adds an
with the book cover
Applies green/red background based on alreadyRead value
CSS styling to highlight read/unread books
🧪 Testing
All tests pass (npx jest script.test.js ✅)
Tests cover:
Rendering title and author
Including an image for each book
Correct background color based on reading status
Test file: script.test.js
Questions:
None at the moment.