8000 Update sumAll-solution.js · gitwinst/javascript-exercises@f5f6efa · GitHub
[go: up one dir, main page]

Skip to content

Commit f5f6efa

Browse files
authored
Update sumAll-solution.js
1 parent 5513be5 commit f5f6efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

05_sumAll/solution/sumAll-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const sumAll = function (min, max) {
22
if (!Number.isInteger(min) || !Number.isInteger(max)) return "ERROR";
33
if (min < 0 || max < 0) return "ERROR";
4-
if (min > max) {
4+
if (min > max) {
55
const temp = min;
66
min = max;
77
max = temp;

0 commit comments

Comments
 (0)
0