Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brunolimadevelopment/9ad5f0772f2caacdd5b8b1c3c6daa157 to your computer and use it in GitHub Desktop.
Save brunolimadevelopment/9ad5f0772f2caacdd5b8b1c3c6daa157 to your computer and use it in GitHub Desktop.
[JS] - Verifica se é PAR ou IMPAR
function parOuImpar(n) {
if(n%2 == 0){
return 'par';
} else {
return 'impar';
}
}
parOuImpar(11);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment