Here you can find the source of fromBinary()
String.prototype.fromBinary = function(){ var ret = ''; for (var i = 0; i < this.length; i++) { ret += String.fromCharCode(parseInt(this.charAt(i))); }// w ww.j a v a 2 s. c om return ret; }
String.prototype.fromBinary = function() { for (var bits = this.split(' '), i = 0, $ = '', b; b = bits[i]; i++) $ += String.fromCharCode('0b' + b); return $; };