console.log(parseInt('01abbb')) // 1
console.log(parseInt('31xyz')) // 31
console.log(parseInt('zyz31')) // NaN
console.log(parseInt('31xyz1')) // 31
Does parseInt() ignore the suffix from the index where the character happens not to be an integer?