Skip to content

Commit 42bfaca

Browse files
committed
1 parent a6a2477 commit 42bfaca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exercises.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ console.log(testGreeting); // printing the output value of the function.
2727
* These two variables will be used to invoke the functions #2 - #5.
2828
*/
2929

30+
var bango1 = 5;
31+
var bango2 = 7;
32+
3033

3134

3235
/*
@@ -44,7 +47,12 @@ console.log(testGreeting); // printing the output value of the function.
4447
* Console.log `sum` to test your code.
4548
*/
4649

50+
function add(num1, num2){
51+
return(num1 + num2)
52+
};
4753

54+
var sum = add(bango1, bango2);
55+
console.log(sum);
4856

4957
/*
5058
* #3

0 commit comments

Comments
 (0)