Skip to content

Instantly share code, notes, and snippets.

@Narshe1412
Created December 17, 2015 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Narshe1412/8a2a59fd8fc43aff4d28 to your computer and use it in GitHub Desktop.
Save Narshe1412/8a2a59fd8fc43aff4d28 to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/narshe1412 's solution for Bonfire: Binary Agents
function binaryAgent(str) {
var parsedString = str.split(" ");
for (i=0; i<parsedString.length; i++){
parsedString[i] = String.fromCharCode(parseInt(parsedString[i],2));
}
str = parsedString.join("");
return str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment