Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP WITH THIS PROBLEM For Loop Next, you display the content of the first three customer reviews. Create a for loop in which the

PLEASE HELP WITH THIS PROBLEM

For Loop Next, you display the content of the first three customer reviews. Create a for loop in which the counter goes from 0 to 2 in steps of 1. Within the for loop, insert the commands described in the following steps: Add the following HTML code to the value of the ratingReport variable where title is the value of the ratingTitles array item for current review, author is the value of the current ratingAuthors array item, and date is the value of the current ratingDates item. Each customer rates the game on a scale of 1 to 5 stars. Sean would like to have the stars displayed graphically. Add a nested for loop where the counter goes from 1 up to the value of the current customer rating of the game in increments of one. Each time through the nested for loop, add the following HTML code to the value of the ratingReport variable: Directly after the nested for loop, but still within the outer for loop, insert commands to add the following HTML code to the value of the ratingReport variable where summaryis the value from the ratingSummaries array for the current customer review.

Set the Rating

Write the value of the ratingReport variable to the inner HTML of the first and only aside element in the document.

(Hint : As you did with the article element, use the getElementsByTagName() method and reference the first item from the array of aside elements.)

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

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions