Menu
Could someone tell me where my error is in this? ?
[code]
<html>
<head>
<title>parseInt Test</title>
<script type=”text/javascript”>
var mm = ’08’;
var dd = ’09’;
document.write(‘<br>’+mm+’ : ‘+dd);
document.write(‘<br>’+parseInt(mm,16)+’ : ‘+parseInt(dd,16));
document.write(‘<br>’+parseInt(mm,10)+’ : ‘+parseInt(dd,10));
document.write(‘<br>All of above is correct for input given’);
document.write(‘<p>Below is un-expected’);
document.write(‘<br>’+parseInt(mm)+’ : ‘+parseInt(dd))
alert(‘What gives here???’);
</script>
</head>
<body>
</body>
</html>