← Back to challenges

Binary To Text

JavaScriptHardstringslanguage_fundamentals

Instructions

Create a function that takes a binary string and returns the text. The eight bits on the binary string represent 1 character on the ASCII table. For further info, check out the resource tab.

Examples

binaryText("01101110011011110110010001100101") ➞ "node"

binaryText('0111001001100101011000010110001101110100') ➞ "react"

binaryText("011100000111100101110100011010000110111101101110") ➞ "python"

Notes

Inputs are all valid strings.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.