Code School: JavaScript Part 2 (2.2 A Basic Conditional)

18 January 2014
var num = 10;

while(num>0){
  if (num%2 === 0){
    console.log(num);
  }
  num--;
}