We're a place where coders share, stay up-to-date and grow their careers.
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)
A solution with a more functional flavor: