Question: Figure 3 - 1 9 Completed Project 3 - 2 NASA After the for loop, change the inner HTML of the document element by the
Figure Completed Project NASA
After the for loop, change the inner HTML of the document element by the id "gallery" to the value of the
htmlCode variable.
Save your changes to the file and then load projecthtml in your browser. Verify that the page displays the
images in the slide gallery along with their captions.
HandsOn Project
n this project you will generate the HTML code for a web table displaying the top movies from the IMDB
website. Information on each movie is stored in arrays that have been created for you. Your job will be to
reate a program loop that loops through the content of the arrays and writes the information as new table
ows in the web table. A preview of the completed project is shown in Figure
Do the following:
Use your code editor to open the projecttxthtml and projecttxtjs files from the js
project folder. Enter your name and the date in the comment section of each file and save them as
projecthtml and projectjs respectively.
Go to the projecthtml file in your code editor and in the head section add a script element to load the
projectjs file, deferring the loading of the JavaScript source file until the entire HTML file is loaded. Study
the contents of the HTML file and save your changes.
Go to the projectjs file in your code editor. Below the code that creates and populates the links array,
declare the htmlCode variable, setting its initial value to an empty text string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
