Can anyone point me to some code to determine if a number in JavaScript is even or odd?
This can be solved with a small snippet of code:
function isEven(value) { return !(value % 2) }
Hope this helps :)