A Calculator Template!
What is it?
Well, it's my post for template jam.
How does it work?
The calculator works with a display, which has a value of a string. To call that value you just use calculator.display.value
eval()function. All it does it take the string and simplify it!
All the buttons just add to the string. An example is the 1 button below:
<tr> <input value='1' onclick="calculator.display.value+=1" > </tr>
The value tag is the number or symbol that is displayed on the calculator when the program is run.
Help - @TheTacticalCat
And don't forget to upvote!
Also, might I recommend a simple exponent operator, instead of
Actually looking at the HTML further, you used inline script events, such as
onclick, which is usually advised against, also, I'm pretty sure that prevent's Google's V8 from taking effect.