The goal of building this calculator was to continue working with jQuery and manipulating the DOM. As well, the logic behind building a calculator is quite complex and took some work to figure out. In the end, the user is able to string multiple operations together. However, the calculator is not smart enough to factor in order of operations.
- HTML5
- CSS3
- JavaScript/ES6
- Node.JS/Browserify/Grunt
- Bootstrap 3
Here is the jQuery calculator upon load:
Here, a basic addition operation has been executed:
Here, the user has pressed the + key and the calculator adds the previous value to the current value.
The user has divided the previous value by 2, resulting in a final value of 5.
- Clone down this repo and CD into project.
- Install the http-server plugin via npm.
- CD into the
libdirectory and runnpm installvia command line. - In the
libdirectory run the commandgrunt. - CD to the root of the directory and type
hsto start the local http-server. - The terminal will give you a URL, such as
http://127.0.0.1:8081, enter that address into your web browser.



