Skip to content

Strings

Lam edited this page Feb 21, 2026 · 4 revisions

string data type

Strings are text wrapped in quotation marks ". For example: the string "Hello, World!" represents the text Hello, World!

Operators performed on string

  1. +: String concatenation, used to join 2 strings together. For instance: "Hello, " + "World!" results to "Hello, World!". This can be performed on string (aka joining strings)

  2. ==: String equality, compares if 2 strings contain the same content:

  3. !=: Opposite of string equality, compares if 2 strings contain different contents

For example "abcd" equals "abcd" but not equals "ABCD".

Clone this wiki locally