g.js — graphical objects for JavaScript

toCharacterCodestoCharacterCodes

Convert a string into a list of character codes.

g.toCharacterCodes('Hello');

The character codes are Unicode character codes. Each character (letter, number, punctuation, emoji) has a unique value.

g.toCharacterCodes('☁→☂');

Parameters

  • s: The input string.