Created
September 13, 2013 07:01
-
-
Save iegorov/6547497 to your computer and use it in GitHub Desktop.
С днем программиста!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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