So we want to create a JavaScript calculator. Let's not be too ambitious initially. What we will make is a simple calculator using JavaScript code and not a complicated scientific calculator. All our calculator will do is basic arithmetic: add, subtract, multiply and divide.