append character to string javascript code example
Example 1: how to concatenate strings javascript
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
Example 2: js concatenate strings
const str1 = 'Hello';
const str2 = 'World';
console.log(str1 + str2);
>> HelloWorld
console.log(str1 + ' ' + str2);
>> Hello World
Example 3: javascript string concatenation
var totn_string = '';
console.log(totn_string.concat('Tech','On','The','Net'));
TechOnTheNet
Example 4: string concatenation js
var aString="";
aString.concat(value1, value2, ... value_n);