cotrConcat
Concatenates two strings
Aliases:
- cotrConcat
- concatenate
- combine
cpp
std::string myString = "Hello, " + "world!";
csharp
string result = string.Concat(First string, Second string);
dart
'Your string here ' + variable
go
string1 + string2
haskell
string1 ++ string2
java
"String1" + "String2"
javascript
let text = 'Hello, ' + name + '!';
javascriptreact
let text = 'Hello, ' + name + '!';
kotlin
"Your message here" + "another message"
perl
"string1" . "string2"
php
'string1' . 'string2'
powershell
"string1" + "string2"
python
"Your message here" + "Another message"
r
paste("string1", "string2", sep = "")
ruby
"string1" + "string2"
rust
format!("Your message here and more")
scala
"string1" + "string2"
shellscript
# Bash uses string juxtaposition for concatenation:var1var2
swift
"string1" + "string2"
typescript
'Hello, ' + name + '!'
typescriptreact
'Hello, ' + name + '!'