DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Javascript Check if number is even or odd
function solution(num) { return num % 2 === 0 ? 'Even' : 'Odd' }
Source by programmers.co.kr #
PREVIOUS
NEXT
Tagged:
#Javascript
#Check
#number
#odd
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit