Week 7 - Task 1
Output a range of numbers
- Make an 2 input fields with labels "From" and "To" (HTML)
- Make a button called "Show me" (HTML)
- Make a div container element that can be used as output (HTML)
Functionality:
When you press the button, use a for-loop to output all the numbers between "To" and "From" (including the values given).
Example of how a solution might look like:
GIF
Hint
Make an empty array. Fill it up in the for loop. Then in the end output the array.