Lab 18 Js Assignment Operators
A few weeks ago in class, my class and I did a lab where we had to use our knowledge of HTML and Javascript to create a webpage where we had to include different functions where the program would run the following mathematical operations(addition, subtraction, multiplication, division, modules, and equivalent) on a given number that is already programmed into the webpage, and a second number where the user can put any number. This lab is similar to the one that I've done previously before. Instead of having the user input two different numbers, this time the user will only put in one number and another number will be there. Then the operations will work using the number that is inputed. If the user keeps pressing a certain operation more than once, the program will executing the given operation, thus making the value increase of decrease depending on the operation that's clicked on. Also there's a new function labeled "equal". If that is clicked on, then it will make the given value that already on the webpage equal to the new number that the user put into the webpage.
Lab 18 - Click to see and interact with the lab I created
Lab 18 - Click to see and interact with the lab I created
Comments
Post a Comment