Question
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
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