📅  最后修改于: 2022-03-11 15:02:36.055000             🧑  作者: Mango
const evenOrOdd = (number) => {
// TODO: this should return "even" if the number is even, "odd" otherwise
if (number % 2 === 0) {
return "even";
// eslint-disable-next-line no-else-return
} else {
return "odd";
}
};