According to Designer Help, the String type in server JS has a method called “charCodeAt”, consistent with the same method in client JS.However, that method seems not to exist, at least in certain cases.
I have the following code in a sever JS library function:
var key=param.StartKey.toLowerCase();
var c1=key.charCodeAt(0);
On the second line, the following error occurs:
Unknown member ‘charCodeAt’ in Java class ‘java.lang.String’
It may be that the global “param” object is returning Java strings instead of Javascript strings, so is it possible to convert between them to get access to the “charCodeAt” method?