CODE("A") could be written in JavaScript as "A".charCodeAt(0), where the argument to charCodeAt is the position in the string so "AB".charCodeAt(1) would give you the code of B
and
CHAR(65) could be written in JavaScript as String.fromCharCode(65). The method fromCharCode can take a list so String.fromCharCode(65,66,67) will return "ABC".
CODE("A") could be written in JavaScript as "A".charCodeAt(0), where the argument to charCodeAt is the position in the string so "AB".charCodeAt(1) would give you the code of B
and
CHAR(65) could be written in JavaScript as String.fromCharCode(65). The method fromCharCode can take a list so String.fromCharCode(65,66,67) will return "ABC".