Created
December 8, 2015 20:34
-
-
Save codebubb/5252d11554fc28fec545 to your computer and use it in GitHub Desktop.
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
| // Bonfire: Binary Agents | |
| // Author: @codebubb | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-binary-agents | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function binaryAgent(str) { | |
| return str.split(' ').map(function(e){ | |
| return String.fromCharCode(parseInt(e, 2)); | |
| }).reduce(function(a,b){ | |
| return a+b; | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment