From ea31f86f5d941edcd54591be74a85970121d08cc Mon Sep 17 00:00:00 2001 From: michelleco82 Date: Fri, 5 Apr 2019 21:23:15 -1000 Subject: [PATCH] #2 complete --- exercises.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index e3ea79a..33c13c3 100644 --- a/exercises.js +++ b/exercises.js @@ -27,7 +27,8 @@ console.log(testGreeting); // printing the output value of the function. * These two variables will be used to invoke the functions #2 - #5. */ - +var bango1 = 5; +var bango2 = 4; /* * #2 @@ -44,6 +45,11 @@ console.log(testGreeting); // printing the output value of the function. * Console.log `sum` to test your code. */ +function add(num1, num2){ + return num1 + num2; +} +var sum = add(bango1, bango2); +console.log(sum); /*