How to detect the bits of Integer in Javascript.
Like
1234
is
32
or
52
bit integer? you can check with this function.
Example :
console.log(getBitInt(1234))
Algorithm :
The function will be checking the range of given integer. If the integer is within range the limit of bit integer (
32
or
52
or
64
...), function will be return that bit integer.