Question
The Reading List Keep track of which books you read and which books you want to read! Create an array of objects, where each object
The Reading List
Keep track of which books you read and which books you want to
read!
Create an array of objects, where each object describes a book and has
properties for the title (a string), author (a string), and alreadyRead (a
boolean indicating if you read it yet).
Iterate through the array of books. For each book, log the book title and
book author like so: "The Hobbit by J.R.R. Tolkien".
Now use an if/else statement to change the output depending on whether
you read it yet or not. If you read it, log a string like 'You already read "The
Hobbit" by J.R.R. Tolkien', and if not, log a string like 'You still need to read
"The Lord of the Rings" by J.R.R. Tolkien.'
write the above code in java script language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started