SyntaxFix
Write A Post
Hire A Developer
Questions
This one is more simple!
var num = 3 //instead get your value here var aa = ["Even", "Odd"]; alert(aa[num % 2]);