Skip to content

Commit 237d346

Browse files
committed
not null but undefined
1 parent 95e480a commit 237d346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/solutions/04_1_the_sum_of_a_range.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function range(start, end, step) {
2-
if (step == null) step = 1;
2+
if (step == undefined) step = 1;
33
var array = [];
44

55
if (step > 0) {

0 commit comments

Comments
 (0)