Javascript code to check for even number

//Javascript code to check for even number


function CheckForEvenNumber(number)
{
var reminder=1;

if ( number >= 0 )
{
reminder = number % 2;
if ( reminder == 0)
{
return 'true';
}
else
{
return 'false';
}
}

}


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: