Repository of Small Useful Code
function isEvenOdd(num):String { if ((num % 2) == 0) { return "even"; } else { return "odd"; }}trace(isEvenOdd(2)); //Outputs eventrace(isEvenOdd(7)); //Outputs odd
No comments:
Post a Comment