Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following operators are valid operators for numbers. Note: In addition to these there are also functions in the math module.

chr()

The chr() operator returns a string containing the character represented by the ASCIIi value of the number it operates on.  For example:

Code Block
languagejavascript
a = (75).chr(); // a: 'K'

The inverse of chr() is ord()

range()

The range operator returns an array containing x to n elements. The number it operates on is the start of the range and the first parameter is the end of the range. For example:

...