Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

Students also viewed these Databases questions

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago