binary to ascii javascript

JavaScript
const binaryAgent = str => str.replace(/\d+./g, char => String.fromCharCode(`0b${char}`));
Source

Also in JavaScript: