How to convert integer to character in JavaScript

1 Answer

0 votes
const n = 106;

console.log(String.fromCharCode(n));

console.log(String.fromCharCode(97));






/*
run:

"j"
"a"

*/

 



answered Aug 31, 2022 by avibootz
...