Skip to content

Instantly share code, notes, and snippets.

@sebastianherman
Created January 10, 2021 15:41
Show Gist options
  • Save sebastianherman/52b68c0ddd379cd961dff9c39dc738a3 to your computer and use it in GitHub Desktop.
Save sebastianherman/52b68c0ddd379cd961dff9c39dc738a3 to your computer and use it in GitHub Desktop.
Intermediate Algorithm Scripting: Binary Agents - freeCodeCamp solution
function binaryAgent(str) {
return str.split(" ").map(value => {
return String.fromCharCode(parseInt(value, 2));
}).join("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment