Code
Jump to navigation
Jump to search
code
Return the Unicode code point of the first character of
the given string. This is the inverse of char.
May be called with function syntax or dot syntax.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
self | string | string to get the code point of |
Usage Notes
code
may be called either as a global method, passing the string as an argument; or as a member function (defined on string) using dot syntax, with no arguments.
Example
code("*") // returns 42