JavaScriptでNumber型の長さを取得する

created 2021/02/14updated 2021/02/14
js
let price = 80000000 price.toString().length // => 8