diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js new file mode 100644 index 0000000000..9bbdb7f418 --- /dev/null +++ b/Bit-Manipulation/OddEven.js @@ -0,0 +1,18 @@ +/* + author: IndianBlitz + + This script will find number is Odd or even +*/ + +function checkEvenOdd(num){ + 'use strict'; + if((num & 1) === 0){ + return 1; + } + else{ + return 0; + } + +} + +export { checkEvenOdd };