MOBILE DEVELOPEMENT

Lab 1 Questions

Element Default Event Record Type of Data Min/Max
Dropdown Menu "On Change" Text Within "Options" String na
Button "On Click" na na na
Label "On Click" na na na
Radio Button "On Change" True/False Boolean na
Image "On Click" na na na
Screen "On Keydown" na na na
Chart "On Bar" na na na
Text Input "On Change" Text Entered String na
Checkbox "On Change" True/False Boolean na
Canvas "On Click" na na na
Text Area "On Change" Text Entered String na
Slider "On Input" Value Numbers 0-100

What variables are being used?

The variables used are var inputOne, var inputTwo, var firstInput, var operation, and var calcText.

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

This tool turns the strings into numbers so the variables can be calculated instead of words being put together.

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

Numbers including 1 and 2 are enabled to be added. Subtracting, multiplying, and dividing variables using numbers other than 1 and 2 are not present.

Home Page