Thursday, April 14, 2011

How to check even or odd number in Javascript

function isEven(value){
 if (value%2 == 0)
  return true;
 else
  return false;
}

No comments:

Post a Comment