Create a function ternaryOperator that checks if a number is even or odd using the ternary operator and logs the result.

Output: