periksa javascript apakah nomornya genap atau ganjil
const isEven = num => num % 2 === 0;
console.log(isEven(2));
// Result: True
Rashid Siddique
const isEven = num => num % 2 === 0;
console.log(isEven(2));
// Result: True