Mobile Web Development

Element Default Event Records Data Type Max/Min
Dropdown Menu "On change" Text within "options" string N/A
Button "On click" N/A N/A N/A
Label "On click" N/A N/A N/A
Radio Button "On change" true/false boolean N/A
Image "On click" N/A N/A N/A
Screen "On keydown" N/A N/A N/A
Chart "On bar" N/A N/A N/A
Text Input "On change" entered text string N/A
Checkbox "On change" true/false boolean N/A
Canvas "On click" N/A N/A N/A
Text Area "On change" entered text string N/A
Slider "On input" value number 100/0

qr code

Mobile Lab #5 Questions

What variables are being used?

The variables being used are: inputOne, inputTwo, firstInput, operation, calcText. These variables allow the user to do simple math.

How does “parseInt()” help with the code?

This turns the strings back into variables so they can be added/subracted/divided/multiplied mathematically.

What events are already specified? What needs to be added?

The events of the 1 and 2 buttons being clicked are already specified. The plus and equal buttons are also specified, along with the button that clears the inputs.

Home Page