This section uses the parseFloat function to change the string to a number. Output is written using innerHTML because the values are being sent between p element tags.
The text was not reseting, so I made a function that reset it, but had to change the original name of the function from reset().
This section uses parseInt() method to convert the string to a number. The outputs are written to input fields. User is alerted if they enter the same number.
This section uses the number function, and is probably the best option.