📅  最后修改于: 2022-03-11 15:02:22.135000             🧑  作者: Mango
const solve = (n) => {
const nums = [];
for (let i = 0; i <= n; i++) {
let n = String(i);
if (!n.includes('4')) {
nums.push(n);
}
}
return nums.length;
};