Creating a simple calculator

This is for a blog post: JavaScript Calculators & Code Creators

by David Roman-Halliday

HTML

<!doctype html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Calculator Example</title>
    <!-- Note: for inline javascript, the code will go here -->
    <!-- Note: for jsfiddle.net, the code will go in the JavaScript frame -->
  </head>
 <body>
   <h1>Calculator Example</h1>
   <p>Inputs will go here</p>
   <p>An action Button will go here</p>
   <p>Output will be here</p>
  </body>
</html>