String Conatenacja w JS
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
console.log(res);
JavascriptNinja
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
console.log(res);
var one = 'Hello';
var two = 'World';
console.log(one + two);
It will print: HelloWorld
console.log(one + ' ' + two);
It will print: Hello World