String

A string is a data type that represents text — a sequence of characters such as letters, numbers, and symbols, usually written inside quotes.

General Programming

Strings are used for names, messages, file paths, and any text a program handles. They support operations like joining (concatenation), slicing, and searching.

Examples

Python

name = "Ada"
print("Hello, " + name)

Output:

Hello, Ada

JavaScript

let name = "Ada";
console.log(`Hello, ${name}`);

Output:

Hello, Ada

See also

Back to the Dictionary