Skip to content

Instantly share code, notes, and snippets.

@iegorov
Created September 13, 2013 07:01
Show Gist options
  • Save iegorov/6547497 to your computer and use it in GitHub Desktop.
Save iegorov/6547497 to your computer and use it in GitHub Desktop.
С днем программиста!
function asciiToStr(asciiStr) {
var
srcText = asciiStr,
arr = srcText.split(' '),
outText = "",
i,len;
for (var i = 0, len = arr.length; i < len; i +=1) {
outText += String.fromCharCode(arr[i]) + ' ';
}
return outText;
}
console.log(asciiToStr("72 97 112 112 121 32 80 114 111 103 114 97 109 109 101 114 115 32 68 97 121 33"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment