Strings are defined using the built-in
string type like this:
Strings can be concatenated using the
Substrings can be extracted using the predefined function
String.sub. The first character has index 0 and the interval of
indices for the substring has inclusive bounds.
⚠️ Notice that the offset and length of the slice are natural numbers.
The length of a string can be found using a built-in function:
Byte literals are defined using the prefix
0x followed by hexadecimal digits like this:
Bytes can be concatenated using the
Bytes can be extracted using the predefined function
The first parameter takes the start index and the second parameter takes the number of bytes.
Pay special attention to how
bytes are indexed.
The length of
bytes can be found using a built-in function