I made stuff here
Element | Default Event | Record | Data Type | Min/Max |
Dropdown Menu | On change | Options | String | n/a |
Button | Click | Boolean | Boolean | n/a |
Text Input | Change | Text | String | n/a |
Label | Click | Boolean | Boolean | n/a |
Radio Button | Change | Checked | Boolean | n/a |
Check Box | Change | Checked | Boolean | n/a |
Image | Click | Boolean | Image | n/a |
Canvas | Click | Clicked | SetActiveCanvas | Dimensions of Canvas |
Screen | Click | Clicked | Clicked | n/a |
Text Area | Change | Text Input | String | n/a |
Chart | drawChart | Values | Integer | n/a |
Slider | Input | Values | Integer | Max/Min Value for Slider |
- The calculator code uses variables that determine the two inputs, determine whether or not a first input has been selected, variables that store which operation is used, and variables that are strings containing the information displayed in the calculators top box
- The function parseInt() is helpful as it translates the numbers inputted into the calculator into strings that are able to be displayed alongside other strings, such as "sin()"
- The events that input numbers and output answers for addition are added, as well as the function that outputs the answers as a string with nubmers within. I must add other functions, like subtraction and multiplication.