JavaScript Practice: Data Types, Conditional, Functions

Hi I wanted to ask - in 2nd exercise of JavaScript Practice: Data Types, Conditional, Functions there is exercise to return true or false if number is even or odd.

Is this right code using ternary operator? I can’t tell. Thanks in advance for any feedback.

const isEven = (number) => {

number % 2 === 0 ? true : false;

}

isEven(0)

Very close. Do you see a way true or false is going to be returned?

Also, don’t forget to format your code. [How to] Format code in posts