diff --git a/code/solutions/04_1_the_sum_of_a_range.js b/code/solutions/04_1_the_sum_of_a_range.js index ff480e46e..8ee2de385 100644 --- a/code/solutions/04_1_the_sum_of_a_range.js +++ b/code/solutions/04_1_the_sum_of_a_range.js @@ -1,5 +1,5 @@ function range(start, end, step) { - if (step == null) step = 1; + if (step == undefined) step = 1; var array = []; if (step > 0) {