Calculator

Example

Basic Features

Step 1: From the Cloud9 dashboard: Create a new workspace
Fill in the following text boxes on the form:
→ Workspace name: calculator Copy
→ Clone from Git or Mercurial URL: https://github.com/studentmrcode/template.git Copy
Click Create workspace button
Open index.html and click Run

Step 2: Think about the design of your program and write pseudocode.

Step 3: Write actual code from your pseudocode.

Hints

For making complex if statements, watch the logical operators video.

If the numbers don't add correctly, use the parseFloat method when adding the numbers:
parseFloat(yourFirstNumber) + parseFloat(yourSecondNumber)

Debugging help

Last topic Next topic