Check if a number is even or odd using javascript


console.log("check if a number is even:");
 const isEven = (number) =>
 {
     if (number % 2 !== 0)
         return "Number is odd";
     return "Number is even";
 }
 console.log(isEven(842)); //Number is even
 console.log(isEven(963)); //Number is odd