Search
Complete the JavaScript function to reverse the binary representation of a positive integer and return the decimal version of the binary string. The function accepts a positive integer.
For example: