📜  python中的数字数量 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:22.135000             🧑  作者: Mango

代码示例1
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;
};