nodejs binary string to decimal number code example Example: nodejs binary string to decimal number var digit = parseInt(binary, 2);