Lab 17 JS Arithmetic 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, and modulos) on two different numbers that the user would enter on the webpage. So once the webpage is opened, the user would enter two different numbers. Then below, there would be five different operations that will be done on the two numbers if the button is clicked. If the user were to click "addition", it would add the numbers. If the user were to click "subtraction", it would subtract the numbers. If the user were to click "multiplication", it would multiply the numbers. If the user were to click "division", it would divide the numbers. If the user were to click "modulos", it would show how many times the first number goes into the second number, in other terms it shows the remainder of the two numbers.
Lab 17 - Click to see and interact with the lab I created
Lab 17 - Click to see and interact with the lab I created
Comments
Post a Comment