SOURCE

//121
function getSymmetryNum(n) {
    for(let i = 0; i < n; i++) {
        let result = 0

        while(i > 0) {
            result = result * 10 + i % 10
            i = parseInt(i / 10)
        }
        console.log(result)
    }
}

getSymmetryNum(100)
console 命令行工具 X clear

                    
>
console