Junior — Senior
Function for generating a sequence of numbers within a specified range
livecode
Task condition
Implement a function range that takes two numeric arguments and returns all integers between them, inclusive.
for (let value of range(1, 4)) {
console.log(value);
}
// 1, 2, 3, 4