From f5f6efae9bf53a57db07544b8068b9c8a02d1955 Mon Sep 17 00:00:00 2001 From: Will <59489624+cats256@users.noreply.github.com> Date: Sat, 29 Jul 2023 15:40:07 -0500 Subject: [PATCH] Update sumAll-solution.js --- 05_sumAll/solution/sumAll-solution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05_sumAll/solution/sumAll-solution.js b/05_sumAll/solution/sumAll-solution.js index 9cc35bb..ae01a5b 100644 --- a/05_sumAll/solution/sumAll-solution.js +++ b/05_sumAll/solution/sumAll-solution.js @@ -1,7 +1,7 @@ const sumAll = function (min, max) { if (!Number.isInteger(min) || !Number.isInteger(max)) return "ERROR"; if (min < 0 || max < 0) return "ERROR"; - if (min > max) { + if (min > max) { const temp = min; min = max; max = temp;