// 求1000以内对称的数字,如22,212,
function getNum() {
let arr = []
for(var i = 0;i<=1000;i++){
if(i>10){
i = i.toString()
i.split('')[0] === i.split('')[i.length-1] && arr.push(i)
}
}
return arr
}
console.log(getNum());