Created
August 7, 2025 14:32
-
-
Save ixtk/38f25a48825808553f8b103fd5e1cdc0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const books = [ | |
| { | |
| title: "The Hitchhiker's Guide to the Galaxy", | |
| author: 'Douglas Adams', | |
| yearPublished: 1979, | |
| genre: 'Science Fiction', | |
| pages: 224, | |
| isbn: '978-0345391803', | |
| isAvailable: true, | |
| imageUrl: | |
| 'https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1531891848i/11.jpg', | |
| reviews: [ | |
| { | |
| user: 'ArthurDent42', | |
| rating: 5, | |
| comment: 'Mostly harmless and hilarious!', | |
| }, | |
| { | |
| user: 'FordP', | |
| rating: 4, | |
| comment: 'A frood who really knows where his towel is.', | |
| }, | |
| ], | |
| }, | |
| { | |
| title: 'To Kill a Mockingbird', | |
| author: 'Harper Lee', | |
| yearPublished: 1960, | |
| genre: 'Classic', | |
| pages: 324, | |
| isbn: '978-0061120084', | |
| isAvailable: false, | |
| imageUrl: 'https://m.media-amazon.com/images/I/81O7u0dGaWL.jpg', | |
| reviews: [ | |
| { | |
| user: 'ScoutFinch', | |
| rating: 5, | |
| comment: 'A timeless story about justice and empathy.', | |
| }, | |
| { | |
| user: 'Atticus_F', | |
| rating: 5, | |
| comment: 'An essential read for everyone.', | |
| }, | |
| ], | |
| }, | |
| { | |
| title: 'Dune', | |
| author: 'Frank Herbert', | |
| yearPublished: 1965, | |
| genre: 'Science Fiction', | |
| pages: 412, | |
| isbn: '978-0441172719', | |
| isAvailable: true, | |
| imageUrl: | |
| 'https://hunterpaperco.com/cdn/shop/files/hbg-title-9781473233959-117.webp?v=1736510169', | |
| reviews: [ | |
| { | |
| user: 'Paul_A', | |
| rating: 5, | |
| comment: 'The spice must flow! A masterful world.', | |
| }, | |
| { user: 'Fremen_4', rating: 4, comment: 'A complex and rewarding read.' }, | |
| ], | |
| }, | |
| { | |
| title: 'The Hobbit', | |
| author: 'J.R.R. Tolkien', | |
| yearPublished: 1937, | |
| genre: 'Fantasy', | |
| pages: 310, | |
| isbn: '978-0547928227', | |
| isAvailable: true, | |
| imageUrl: 'https://covers.openlibrary.org/b/id/6979861-L.jpg', | |
| reviews: [ | |
| { | |
| user: 'BilboB', | |
| rating: 5, | |
| comment: "An unexpected journey that I'll never forget.", | |
| }, | |
| { | |
| user: 'GandalfG', | |
| rating: 5, | |
| comment: 'A good, old-fashioned adventure story.', | |
| }, | |
| ], | |
| }, | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment