Convertir texto a JavaScript binario
function stringToBinary(str) {
let strOut = "";
for (var i = 0; i < str.length; i++) {
strOut += str[i].charCodeAt(0).toString(2);
}
return strOut
}
Maximilian Steiger