ga-wdi-boston / js-functions-ins-and-outs

JavaScript Function Arguments and Return Values.
Other
2 stars 174 forks source link

Function Add should + not - #39

Open MicFin opened 7 years ago

MicFin commented 7 years ago

The function called add() is incorrectly subtracting https://github.com/ga-wdi-boston/js-functions-ins-and-outs#functions-with-1-or-more-arguments

const add = function(num1, num2){ 
-   return num1 - num2 
+   return num1 + num2 
}