Created
January 10, 2021 15:41
-
-
Save sebastianherman/52b68c0ddd379cd961dff9c39dc738a3 to your computer and use it in GitHub Desktop.
Intermediate Algorithm Scripting: Binary Agents - freeCodeCamp solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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