Question: Using HTML/JavaScript Arrays A A) Create an array with the names of your top 5 bands B) Loop through the array you created and display

Using HTML/JavaScript

Arrays A

A) Create an array with the names of your top 5 bands

B) Loop through the array you created and display each of your choices in an un-ordered list like below

My #1 band is Prince and the Revolution

My #2 band is Michael Franti and Spearhead

My #3 band is Ben Harper and the Innocent Criminals

My #4 band is The Visionaries

My #5 band is Atmosphere

C) In addition to displaying your top 5 bands, Create another loop that will add to the current list or display below the original list. This list will display the name of your favorite band according to the suffix that is based on the position in the array.

For example, if it is the first position of the array, it is the 1st band, second position, is it the 2nd band, etc

My #1 band is Prince and the Revolution

My #2 band is Michael Franti and Spearhead

My #3 band is Ben Harper and the Innocent Criminals

My #4 band is The Visionaires

My #5 band is Atmosphere

My 1st favorite band is Prince and the Revolution

My 2nd favorite band is Michael Franti and Spearhead

My 3rd favorite band is Ben Harper and the Innocent Criminals

My 4th favorite band is The Visionaries

My 5th favorite band is Atmosphere

Arrays B

A) Create an array of objects( at least 5), each object will describe a book that has the following properties:

title (string)

author (string)

alreadyRead (boolean- mean you already read the book)

B) Iterate through the array of Books and display the title and author depending on weather you have read the book or not.

If you read the book, display:

I have already read "The Grapes of Wrath" by John Steinbeck

If you have not read the book, display

You still have to read "The Grapes of Wrath" by John Steinbeck

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!