function gyy (m < n) {
var r=m%n;
m=n;
n=r;
if(r==0){
return m;
}else{
gyy(m,n);
}
}
alert(gyy(6,12))
Why do I output undefined? from the above code?