(?Binary|??Binary Agents | Free Code Camp)
【(?Binary|??Binary Agents | Free Code Camp)】Return an English translated sentence of the passed binary string.return ??
The binary string will be space separated.
binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111") should return "Aren't bonfires fun!?"
binaryAgent("01001001 00100000 01101100 01101111 01110110 01100101 00100000 01000110 01110010 01100101 01100101 01000011 01101111 01100100 01100101 01000011 01100001 01101101 01110000 00100001") should return "I love FreeCodeCamp!"
//Wrong.return??
function binaryAgent(str) {
var arr = str.split(" ");
var result = [];
for(var i=0;
i
文章图片
Wrong
//正解
function binaryAgent(str) {
var arr = str.split(" ");
var result = [];
for(var i=0;
i
推荐阅读
- stm32|基于STM32和freeRTOS智能门锁设计方案
- 植树节,你有freestyle吗()
- Android|Android 进阶之旅 | android studio freeline的使用
- Can|Can you express yourself freely
- FreeCodeCamp-JavaScript初级算法题-3
- FreeCodeCamp-JavaScript初级算法题-2
- FreeCodeCamp-JavaScript初级算法题-1
- cs61b week8 -- Binary Search Tree
- Deploy static web pages for free with 4everland
- leetCode解题报告|leetCode解题报告之Binary Tree Level Order Traversal II,I(二叉树层次遍历)