Решение вот,но оно без for
<script>
function uh(x){
if(x[1]>x[2])
{return 1}
else
{return 0}
}
a=[['Мама',4,2],['Папа',2,3]];
for(i=0;i<a.length;i++){
document.write(a[i]+'<br>');
}
c0=uh(a[0]); //Без цикла получается
document.write(c0+'<br>');
c1=uh(a[1]);
document.write(c1+'<br>');
</script>