请大神帮我看看,条件句有报错
<script type="text/javascript">
//第一步把之前的数据写成一个数组的形式,定义变量为 infos
var infos=new Array(10);
infos[0]="小A","女";
infos[1]="小B","男";
infos[2]="小C","男";
infos[3]="小D","女";
infos[4]="小E","女";
infos[5]="小F","男";
infos[6]="小G","女";
infos[7]="小H","女";
infos[8]="小I","女";
infos[9]="小J","男";
for(var i=0;i<10;i++)
infos[j]=new Array(10);
infos[0]=21,"大一";
infos[1]=23,"大三";
infos[2]=24,"大四";
infos[3]=21,"大一";
infos[4]=22,"大四";
infos[5]=21,"大一";
infos[6]=22,"大二";
infos[7]=20,"大三";
infos[8]=20,"大一";
infos[9]=20,"大三";
for(var j=0;j<10;j++);
infos[i][j]=i+j;
//第一次筛选,找出都是大一的信息
//第二次筛选,找出都是女生的信息
if(infos[i]="女" && infos[j]="大一";)
{document.write("大一女生的信息:"+ infos[i][j]+ "</br>");
}
</script>
并且这种写法是否ok?