We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e480a commit 237d346Copy full SHA for 237d346
1 file changed
code/solutions/04_1_the_sum_of_a_range.js
@@ -1,5 +1,5 @@
1
function range(start, end, step) {
2
- if (step == null) step = 1;
+ if (step == undefined) step = 1;
3
var array = [];
4
5
if (step > 0) {
0 commit comments