Skip to content

Commit 57de77d

Browse files
JonJon
authored andcommitted
complete devleagueprep#2
1 parent a6a2477 commit 57de77d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exercises.js

Lines changed: 9 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 = 1;
31+
var bango2 = 2;
3132

3233
/*
3334
* #2
@@ -44,6 +45,13 @@ 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+
}
52+
53+
var sum = add(bango1, bango2);
54+
console.log('sum: ' + sum);
4755

4856

4957
/*

0 commit comments

Comments
 (0)