In programming, a string is a data type that consists of a sequence of characters, such as letters, numbers, and symbols. Strings are often used to handle text in applications.
For example, a string can represent a name, a sentence, or any other text. Strings are enclosed in quotes, either single or double, depending on the programming language.
Strings can be manipulated in various ways, such as combining them, finding their length, or extracting specific characters. They are essential for displaying messages, user inputs, and more in software development.
Example
let greeting = 'Hello, World!';
Related terms
Want to use String in real work?
WeCode workshops are built around AI coding tools. Pick a tier, or browse more glossary entries to get the lay of the land.
