A solution with a more functional flavor:
const range = (start, end) => Array(end - start).fill(null).map((_ , i) => i + start)
range(1, 100).filter(x => x % 2 === 1)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.