generated at
parseInt
parseInt("100www") →100
parseInt("www1000") →NaN
この元々の方のやつ、数値をparseIntに適用するモチベがわからない
使わないほうがいい
代わりにMath.truncを使う
Numberを使う
console.log(parseInt("1e3")); // → 1 !!!!!
console.log(Math.trunc(Number("1e3"))); // → 1000