freekir
11/30/2017 - 1:34 PM

Рекурсивная функция

var test = 2;

function recJS(){
  test -=1;
  if(test > 0){
    recJS();
  }
}

recJS();