string string1 = "Hello";
string string2 = "world";
string result = string1 + " " + string2;
Console.WriteLine(result); // output: Hello world And here's how to join two strings in JavaScript:
var string1 = "Hello";
var string2 = "world";
var result = string1 + " " + string2;
console.log(result); // output: Hello world