How do you distinguish between numbers that are add and even in javascript? i searched a whole jscript book and web for it but couldn't find any info.
How do you distinguish between numbers that are add and even in javascript? i searched a whole jscript book and web for it but couldn't find any info.
Find the remainder when divided by two.Code:if(n % 2 === 0) // n is even else // n is odd
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks