Answers for "convert binary string to long int in js"

1

how to convert string into binary in javascript

// Text to Binary
function text2Binary(string) {
    return string.split('').map(function (char) {
        return char.charCodeAt(0).toString(2);
    }).join(' ');
}
text2Binary("Hello World");
Posted by: Guest on January-08-2022
0

nodejs binary string to decimal number

var digit = parseInt(binary, 2);
Posted by: Guest on June-08-2021

Code answers related to "convert binary string to long int in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language