Created
June 12, 2017 18:38
-
-
Save BeKnowDo/15945342fecead85d55dc9a0febc2ffb to your computer and use it in GitHub Desktop.
Binary Gaps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const binaryGaps = (number) => { | |
let binaryConversion = number.toString(2); | |
binaryConversion | |
return binaryConversion; | |
} | |
document.querySelector('#test').innerHTML = binaryGaps(14374); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment