We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57de77d commit c9402c1Copy full SHA for c9402c1
exercises.js
@@ -27,8 +27,8 @@ console.log(testGreeting); // printing the output value of the function.
27
* These two variables will be used to invoke the functions #2 - #5.
28
*/
29
30
-var bango1 = 1;
31
-var bango2 = 2;
+var bango1 = 5;
+var bango2 = 8;
32
33
/*
34
* #2
@@ -54,6 +54,7 @@ var sum = add(bango1, bango2);
54
console.log('sum: ' + sum);
55
56
57
+
58
59
* #3
60
* Function - subtract
@@ -68,7 +69,13 @@ console.log('sum: ' + sum);
68
69
* Console.log `difference` to test your code.
70
71
72
+function subtract(num1, num2){
73
+ return num1 - num2;
74
75
+}
76
77
+var difference = subtract(bango1,bango2);
78
+console.log(difference);
79
80
81
* #4
0 commit comments