“Concatenação da string” Respostas de código

Concatenação de string em JS

var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
console.log(res);
JavascriptNinja

Strings de mesclagem Python

my_list = ['a', 'b', 'c', 'd']
my_string = ','.join(my_list)
# Output = 'a,b,c,d'
Quercia

cordas concatenas

# concatenating strings just means combining strings together
# it is used to add one string to the end of another
# below are two exmaples of how concatenation can be used 
# to output 'Hello World':

# example 1:
hello_world = "Hello" + " World"
print(hello_world)

>>> Hello World

# example 2:
hello = "Hello"
print(hello + " World")

>>> Hello World
codeconnoisseur

Concatenação da string

first = "first words"
second = "second words" 
third = first+second
print(third)
Javasper

Concatenação da string

String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.concat(lastName));
Magnificent Monkey Adi

Respostas semelhantes a “Concatenação da string”

Procure respostas de código populares por idioma

Procurar outros idiomas de código