append char to string javascript code example
Example 1: add char in specific index stirng javascript
int j = 123456;
String x = Integer.toString(j);
x = x.substring(0, 4) + "." + x.substring(4, x.length);
//output : 1234.56
Example 2: string concatenation in js
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
console.log(res);
Example 3: javascript add to string
var s = 'hell'
s = s + 'o'
Example 4: string concatenation js
var aString="";
aString.concat(value1, value2, ... value_n);