Markup languages change how things look.
A programming language makes things happen.
This post provides a quick reference related to the assignment.
- What is a variable? How does it work? Watch this video. Also see Robbins, pages 465–466.
- What are the alert, prompt, and confirm dialogs? See figure 19-5 on page 464 in Robbins.
- How do I change the value of a variable? Same video.
- How can I use alert, prompt, and confirm dialogs? That’s in this video, at the beginning.
- What is an array? Watch this video. See Robbins, page 468.
- What is a for-loop and how does it work? See this video at 6:54. See Robbins, pages 471–473.
- For-loops are continued in this video. How to loop over an array is specifically shown around 2:53 in that video.
NOTE that when you write
console.log() in your code.
One final note about this assignment: The point is NOT to teach you how to use alert, confirm and prompt dialogs. The point is to teach you how to use variables and arrays, which contain values that can be changed, and to use if-statements and for-loops to get work done.