isInPowerOfTwo

Run Settings
LanguageJavaScript
Language Version
Run Command
function isInPowerOfTwo(num){ if(num&&(!(num&(num-1))))return 1 return 0; } console.log(isInPowerOfTwo(256));
Editor Settings
Theme
Key bindings
Full width
Lines