rony2605

Retornar a funcao divisivel por 3

Mar 12th, 2013
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var quarter = function(n) {
  2.    return n % 4 == 0;
  3.     return true;
  4.   } else {
  5.     return false;
  6.   }
  7. };
  8. if (quarter(2) % 3 === 0 ) {
  9.   console.log("The statement is true");
  10. } else {
  11.   console.log("The statement is false");
  12. }
RAW Paste Data