function countDown() {
  counter--;
  // Out of time
  if (counter<=0) {
    outOfTime();
    countUp();
    counterInterval = setInterval(countUp, 1000);
    return;
  }
  showCounter(false);
}
// when time is up, start counting up
when time is up, start counting up
when time is up start counting up
function countDown() {
  counter--;
  if (counter<=0) {
    outOfTime();
    countUp();
    counterInterval = setInterval(countUp, 1000);
    return;
  }
  showCounter(false);
}
function countDown ( ) { counter -- ; if ( counter <= 0 ) { outOfTime ( ) ; countUp ( ) ; counterInterval = setInterval ( countUp , 1000 ) ; return ; } showCounter ( false ) ; }
when time is up, start counting up
when time is up start counting up
// Out of time