Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 478 Bytes

is-even-bitwise-series.md

File metadata and controls

21 lines (14 loc) · 478 Bytes

isEven? - Bitwise Series 7 Kyu

LINK TO THE KATA - RESTRICTED FUNDAMENTALS

Description

If the numbers is even return true. If it's odd, return false.

Oh yeah... the following symbols/commands have been disabled!

  • use of %

Solution

const isEven = n => Number.isInteger(n / 2)