How do I figure out if a variable is divisible by 2? Furthermore I need do a function if it is and do a different function if it is not.
var x = 2; x % 2 ? oddFunction() : evenFunction();