Internet Explorer Returns Incorrect JavaScript Object Length
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
alert(
[
'a',
'b',
'c',
'd',
'e'
].length
);
alert(
[
'a',
'b',
'c',
'd',
'e',
].length
);
</script>
</body>
</html>
Comments
Leave a Reply