function solution(n) {
let answer = []
for (let i=0; i<=n; i++) {
if (i % 2 === 1) {
answer.push(i) // answer = [...answer, i];
}
}
return answer
}
function solution(n) {
let nums = [];
for (let i = 0; i <= n; i++) {
if (i % 2 === 1) nums = [...nums, i];
}
return nums;
}