how can i convert ascii code to character in javascript

JavascriptAscii

Javascript Problem Overview


how can i convert ascii code to character in javascript

Javascript Solutions


Solution 1 - Javascript

String.fromCharCode(ascii_code)

Solution 2 - Javascript

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"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDeepaView Question on Stackoverflow
Solution 1 - JavascriptDarko KendaView Answer on Stackoverflow
Solution 2 - JavascriptSaleheen NoorView Answer on Stackoverflow