string

The type for text values, such as a name or an email address.

In more detail

In C#, TypeScript and many other languages a string can never be changed once created, so methods that look as though they edit one, such as trimming or changing case, return a new string. For building text piece by piece in a loop, languages offer builders or joins instead.

Example

C#: StringBuilder

Related terms

Taught in

References