The Code
Entry Point
Generate the list of numbers
Display on the UI
Functions used:
getValues()
generateValues()
displayValues()
Logic used:
Entry Point - getValues()
The getValues function grabs the value from the input when the user pushes the button.
These values are then changed from strings to integers, validated, then if valid are sent to
generateValues to be turned into an array of numbers between the two values.
Create all the needed Number - generateValues()
The generateValues takes in the parameters from getValues and creates an
array of ints of all the numbers between the two values passed as a parameter and then returns the
new array to getValues to be then passed to displayValues.
Display Table on UI - displayValues()
The displayValues takes in the parameters from getValues and creates a
string variable that is used to create an HTML table. That string is then used to display on the UI
by writting to the InnerHTML property on the page.