Here's an odd one. It took me a while to find my bug because I didn't even think about THIS:
parseInt('08') returns 0 (not 8, as I would expect). Can anyone figure why this might be? I can't begin to imagine!
--Dave
P.S., try it for yourself!
parseInt('08') returns 0 (not 8, as I would expect). Can anyone figure why this might be? I can't begin to imagine!
--Dave
P.S., try it for yourself!
Code:
<html>
<head>
<script>
alert(parseInt('08'));
</script>
</head>
</html>