Concatenation

Concatenation is the joining of two or more strings end to end to form a single string, usually with the + operator or string formatting.

General Programming

Examples

Python

first = "Hello"
second = "World"
print(first + " " + second)

Output:

Hello World

JavaScript

let first = "Hello";
let second = "World";
console.log(first + " " + second);

Output:

Hello World

See also

Back to the Dictionary