From e08dcc0d25ac00a2f376dbe00a20875623974fc6 Mon Sep 17 00:00:00 2001 From: Vikram Sethi Date: Sun, 21 Nov 2021 12:10:10 -0600 Subject: [PATCH] [Issue 26] Add Sum Function --- JavaScript/Functions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/JavaScript/Functions.js b/JavaScript/Functions.js index d6d831b..2014a06 100644 --- a/JavaScript/Functions.js +++ b/JavaScript/Functions.js @@ -7,4 +7,9 @@ function returnSmallest(a, b) { } } -// Add your functions below this line :) ------------------------------------ \ No newline at end of file +// Add your functions below this line :) ------------------------------------ + +// A function that returns the sum of 2 arguments +function returnSum(a, b) { + return a+b +} \ No newline at end of file