校验数字是奇数还是偶数
<script> const isEven = num => num % 2 === 0; console.log(isEven(2)); // Result: True console.log(isEven(3)); // Result: false </script>
<script> const isEven = num => num % 2 === 0; console.log(isEven(2)); // Result: True console.log(isEven(3)); // Result: false </script>