Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@skiilaa 0 & 1 is 0. 1 & 1 is 1. Since even numbers have 0 for the last bit, returning "not and" with 1 will return the evenness of that number.
Related Rants
function isEven(number) {
return number % 2 == 0;
}
undefined
js
modulo
even
comment bass if you read the tags
wk47
math
number
nodejs