how can i convert ascii code to character in javascript

how can i convert ascii code to character in javascript


Solution 1:

String.fromCharCode(ascii_code)

Solution 2:

If you want to convert Ascii Codes to Characters you can use:

String.fromCharCode(codes);

For Example:

String.fromCharCode(65,66,67);

which returns = "ABC"