In JavaScript, how can you get a string representation of an ASCII value.
e.g. how to turn 65 into "A"?
In JavaScript, how can you get a string representation of an ASCII value.
e.g. how to turn 65 into "A"?
fromCharCode method converts ascii to char :
<script type="text/javascript">
document.write(String.fromCharCode(65,66,67)); // ABC
</script>
hope this helps !
The method you're looking for is String.fromCharCode (http://www.w3schools.com/jsref/jsref_fromCharCode.asp).