SOURCE

// 数字转换金额

const convert = (num) => {
    const str = num.toString()
    
    return str
}

console.log(typeof convert(12345678))
console 命令行工具 X clear

                    
>
console