What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-08 02:26:07
binary agents freecodecamp
const binaryAgent = str => { let string = '' str.split(' ').forEach(elem => { // Converts binary numbers to base 2 const toBase = Number.parseInt(elem, 2) // Then convert the ASCII code which is now (toBase) to unicode string +=... Add solution -
Javascript 2021-09-20 20:44:03
string reduction javascript
// method to extend String to call reduce the same way as an Array String.prototype.reduce = function () { return this.split().reduce(...arguments); } // sum of the ascii codes using the newly created String prototype method str.reduce((a,b) => a... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5