Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Update calculator.js #3

Open
wants to merge 1 commit into from

2 participants

Daniel Portugal Douglas Rodrigo
Daniel Portugal

Included MINUS operation

Daniel Portugal Update calculator.js
Included MINUS operation
1481471
Douglas Rodrigo
Owner

minus operation on html not included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 14, 2013
Daniel Portugal Update calculator.js
Included MINUS operation
1481471
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  calculator.js
4  calculator.js
@@ -11,6 +11,10 @@ $("#calcular").click(function() {
11 11
     if ($("#operator").val() == "*") {
12 12
         resultado = numA * numB;
13 13
     }
  14
+    
  15
+     if ($("#operator").val() == "-") {
  16
+        resultado = numA - numB;
  17
+    }
14 18
     $("#resultado").html(resultado);
15 19
 
16 20
 });
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.