In this lab, what we had to do was to let users get two numbers and to do many things with those two numbers like adding or getting the modulo. In order to do this, we need to apply variables to the webpage. i first set up the first number as x and the second number as y. Next, I made a form and use the algorithms to make the function do whatever the user wants them to do. Next, i had to create a html that updates whenever the user decides to keep adding and subtracting. This is done by making a third variable and that variable result would be displayed.
At first, nothing wasn't working and i was wondering why weren't the functions working. I asked help with my peers, but they didn't know what was wrong with my code. I decided to further investigate and found a missing semicolon that was the issue. One issue while working with the lab is to get some of the algorithm to work. At some point, none of them work, but somehow it started to work. Another problem that I dealt with is getting the variables to get the text of the box. This will help me in the future by using algorithm in complex functions.
No comments:
Post a Comment