diff --git a/sumAll/sumAll.js b/sumAll/sumAll.js index 1429afa..cb41f57 100644 --- a/sumAll/sumAll.js +++ b/sumAll/sumAll.js @@ -1,6 +1,6 @@ const sumAll = function(min, max) { - if (min < 0 || max < 0) return "ERROR"; if (typeof min !== "number" || typeof max !== "number") return "ERROR"; + if (min < 0 || max < 0) return "ERROR"; if (min > max) { const temp = min; min = max;