// Only decrement if count is 1 or more - count will never go negativeif(count > 0){ count--;}
function countDown(thisVar){ return (thisVar - 1) * (thisVar > 0); }// using countDown()var myvar = 2;myvar = countDown(myvar);