请问:哪位大神解答下,下面的编码哪里错了吗?(js进阶篇,3-7二位数组)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
var myarr=new Array();
for(var i=0;i<2;i++){
var myarr[i]=new Array();
for(var j=0;j<5;j++)
{myarr[i][j]=i*j;}
}
document.write("值为:"+myarr[1][2]);
</script>
</head>
<body>
</body>
</html>