Chr(code, ...) Last updated: 21. Dec 2022
Returns character of specified number. Can take multiple values.
Parameters
| Name | Type | Description |
|---|---|---|
| code | number | Char code to convert to. |
| ... | Another char, for as many chars as you like. |
Returns
Returns a string with specified character codes.
Example
Code example (#JS)
#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.#{
var html = chr(49, 50, 51); // Char codes for numbers 1, 2 and 3
write(html);
}# Output
The #JS code above produces the output shown below:123