Element | Default Event | Records | Data type | Max/Min |
Dropdown Menu Button Slider Checkbox Text area Label Radio Button Text Input Image Canvas Chart |
"On change" "On click" "On input" "On change" "On change" "On click" "On change" "On input"
"On click" "On click" N/A (No default event) |
Text within options if clicked slider's position as a number if checked Text typed by user if clicked if checked Text inout If clicked If clicked N/A (Displays data) |
string string number boolean string string boolean string image image image |
N/A N/A Max=100; Min=0 N/A N/A N/A N/A N/A N/A N/A N/A |
Variables for the inputs, the numbers that have been parsed, if the input is the first or second number, the operation, the text displayed on the calculator, the values that have been parsed, the result of the operation, and the final text displayed by the calculator after the operation is completed
ParseInt() converts strings into intergers, so that they can be added numerically. If it didn't exist, the calculator would only be able to add single-diget numbers
The buttons that input 1 and 2 are there, the button that sets the operation to addition is there, and the equal button that add the two numbers. The buttons that input numbers 0 and 3-9, subtraction, mulitplication and division buttons, an error message when division by 0 is attepmted, and the ability to input double digit numbers must be added.