-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
Hi,
I am trying to run this simple script:
N = 1
for i in [0..N]
console.log 'i = ' + i
for j in [(i+1)..N]
console.log 'j = ' + jAnd I get:
i = 0
j = 1
i = 1
j = 2
j = 1If I add by 1 to the second loop:
N = 1
for i in [0..N]
console.log 'i = ' + i
for j in [(i+1)..N] by 1
console.log 'j = ' + j... then I get:
i = 0
j = 1
i = 1
j = 2
Is this behavior adequate? Why is j equal to 2?