how to calculate with javascript metode Output #4

1.JPG

Good afternoon hive friends, today we are going to share knowledge about making a simple calculator from javascript where we input the numbers in the script, without further ado I will immediately give you the method.


2.JPG

In this step, just like before, we create titles and text for other people to know what web program we are making so they can immediately read about this program.

3.JPG

In the last step, we immediately create the attribute id "Demo" so that this attribute is read when we create the element in the code, and immediately we create the element as shown in the image above and directly input the number in this script and if you want replacing the number can be directly in this script and if run it immediately issues the output value that we created.


to see the results as below and I have included all the scripts in the image below:

4.JPG

That's all from this article I made because making a calculator application using javascript is very easy because in this article I only make additional calculations, don't make other calculations.

H2
H3
H4
3 columns
2 columns
1 column
1 Comment
Ecency