join 2 string in c# in javascript

Here's how to join two strings in C#:

index.tsx
        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
395 chars
12 lines

related categories

gistlibby LogSnag