Replies: 1 comment
-
Explanation here #158 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why do millions of people not know about this little line of code for checking evens and odds?
num % 2
when implemented into an if/else like so
if (num % 2 === 0) { return true } else { return false }
a function will return true for any even number under infinity.
Beta Was this translation helpful? Give feedback.
All reactions