Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Bit-Manipulation/OddEven.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
author:IndianBlitz
This script will find number is Odd or even
in binary representation of given number
*/
// Check even if true then return 1 else return 0 which means number is odd;
function checkEvenOdd (num) {
'use strict'
if ((num & 1) === 0) return 1
else return 0
}
export { checkEvenOdd }