Lab #18 Arithmetic Operations - Jorge Carty Diaz

In this lab, the premise was to make a simple calculator that calculates (duh!) two different values that the user gave in. I added two texts inputs that takes the values given by the user and makes a operation depending on the type of operator they pick. I also have buttons that trigger functions that make the calculations (e.g multiplication, modulus, division, addition, subtraction). This project was made using javascript for the calculators, HTML for the page layout and CSS for the page design. This was fun to do since it didn't require much brainstorming and it was relatively easy, which is good because that means we are getting better at coding. I forgot to mention before, what's the point of making calculations without displaying it? I gave the p tag an ID that was later on used on JS to display the result of the calculation.

Comments

Popular posts from this blog

COMPARING THE DIFFERENT IMAGE FILE FORMATS by Jorge Carty Diaz

My experience in the Metropolitan Museum of Art

Lab Quince | JS Drum Kit & Clock | Jorge Carty