bot = 3 top = 0 # With right limit range1 = [bot..top] # Without right limit range2 = [bot...top] console.log range1, range2 # Referencing ranges start = 5 end = 10 range3 = [start..end] console.log range3[1..3] console.log range3[1..range3.length] # Negative indexes console.log range3[1..-2]