[an error occurred while processing this directive]

JavaScript Calculator

I wanted to get a bit of exercise with JavaScript so I wrote this simple pocket calculator. If you'd like to figure out how it works, just look at the source code of this page.

You can use the keyboard for interaction with the calculator; use backspace to clear it.

 
0
AC ^ / *
7 8 9 -
4 5 6 +
1 2 3 =
0 . +/-
[an error occurred while processing this directive]