To determine the steps it'll take for "y" to catch up with "z."
var z = 50;
var y = 1;
do {
  document.write(z, "-");
  z++
} while (z >= y);
do {
  document.write(y, "/");
  y = y + 2
} while (y <= z);To determine the steps it'll take for "y" to catch up with "z."
var z = 50;
var y = 1;
do {
  document.write(z, "-");
  z++
} while (z >= y);
do {
  document.write(y, "/");
  y = y + 2
} while (y <= z); 
    
    var z = 50;
var y = 1;
function test(z,y){
    z++;
    y=y+2;
    console.log(z,y,'try');
    if(y>z){
        console.log(z,y,'you do it');
        return false;
    }else{
        test(z,y);
    }
}
test(z,y);
