Character codes: Difference between revisions
Content added Content deleted
(CoffeeScript) |
|||
Line 153: | Line 153: | ||
(print (int \π)) ; prints 960 |
(print (int \π)) ; prints 960 |
||
(print (char 960)) ; prints \π</lang> |
(print (char 960)) ; prints \π</lang> |
||
=={{header|CoffeeScript}}== |
|||
CoffeeScript transcompiles to JavaScript, so it uses the JS standard library. |
|||
<lang coffeescript> |
|||
console.log 'a'.charCodeAt 0 # 97 |
|||
console.log String.fromCharCode 97 # a |
|||
</lang> |
|||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |