The Code
gettable
Here we grab and validate user input to ensure only numbers are passed to the rest of the functions.
calcLoan
This function does most of the work, doing the math and building an array that holds each month and it's values as an object.
Buildcard
This function builds the card HTML from the template I wrote into the app page
Buildtable
This function builds the table HTML from the template I wrote into the app page