Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert text to binary javascript

function stringToBinary(str) {
    let strOut = "";
    for (var i = 0; i < str.length; i++) {
        strOut += str[i].charCodeAt(0).toString(2);
    }
    return strOut
}
 
PREVIOUS NEXT
Tagged: #convert #text #binary #javascript
ADD COMMENT
Topic
Name
6+8 =