Skip to content

Commit ea31f86

Browse files
michelleco82michelleco82
authored andcommitted
devleagueprep#2 complete
1 parent a6a2477 commit ea31f86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

exercises.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ 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-
30+
var bango1 = 5;
31+
var bango2 = 4;
3132

3233
/*
3334
* #2
@@ -44,6 +45,11 @@ console.log(testGreeting); // printing the output value of the function.
4445
* Console.log `sum` to test your code.
4546
*/
4647

48+
function add(num1, num2){
49+
return num1 + num2;
50+
}
51+
var sum = add(bango1, bango2);
52+
console.log(sum);
4753

4854

4955
/*

0 commit comments

Comments
 (0)