아무리해도 push가 되지 않음.....ㅠㅠㅠ
오히려 string보다 number를 다루기 어렵다고 느낌
i < str.length인데 i > str.length라고 적음...
function solution(n) {
const answer = [];
const str = n.toString().split("").reverse()
for(let i=0; i<str.length; i++){
answer.push(Number(str[i]))
}
return answer;
}