11.19.20
LAB - JAVASCRIPT MINI QUIZ AND LOOP GALLERY
Assignment:
PART 1
1. Create an SINGLE page mini JavaScript quiz. You will need to:
- Have 3-5 questions that each provides at least two choices
- Questions should all be related to one over-arching theme
- A "Check Quiz" button should exists that calls a function and calculates the user's score.
- A different end result message or page should appear depending in the users score.
PART 2
2. Create an SINGLE HTML page that contains a JavaScript image gallery that is populated by a loop. You will need to:
- Store at least 10 images in an array
- Store at least 10 image descriptions in a different array
- Have a simple drop down <select> menu where the user can choose a number to determine how many images load in the gallery
- Have a "Create Gallery" button that calls a function and runs a loop
- Use this loop which will run "i" number of times, based on the user's selection above, and populated the gallery with "i" number of images and image descriptions.