DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js check if number is divisible by 2
if (variable % 2 === 0) { console.log("Even") } else { console.log("Odd") }
PREVIOUS
NEXT
Tagged:
#js
#check
#number
#divisible
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit