Why is parseInt()
returning 23 for values / numbers greater than 23? Seeing this strange behaviour and not sure why is this happening? Can someone help me explain why?
console.log(parseInt(null, 10));
console.log(parseInt(null, 23));
console.log(parseInt(null, 24));
console.log(parseInt(null, 30));