x = 4;
console.log(x);
var x = 10,
  y = 2;
function z(x) {
  while (x > 0) {
    if (x > 0) {
      break;
    } else {
      x = x - y;
      return z(x);
    }
    return x;
  }
}
console.log(x);
console.log(z(x) + z(x + y));I need explain for the output of the last line?, where the output is NaN.
 
     
     
     
     
     
     
    