diff --git a/functions.js b/functions.js index f6278ec..45556d1 100644 --- a/functions.js +++ b/functions.js @@ -1 +1,69 @@ // YOUR CODE HERE +//1. maxOrMin(num1, num2, max) +function maxOrMin(num1, num2, max){ + if(max){ + if(num1 <= num2){ + return num2; + } + else if(num2 <= num1){ + return num1; + } + } + else if(num1