const txt = "My name is"
console.log(`${txt} Paul`);
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
// does not change the existing strings, but
// returns a new string containing the text
// of the joined strings.
const helloName = name => `Hello ${name}!`
// using text literal
clssName={`d-block ${error ? "text-danger" : ""}`}
let first_string = 'I am a programmer, ';
let second_string = 'I am indisposable.';
let what_i_said = first_string + second_string;
console.log(what_i_said);
/* OR
*/
let tell_my_boss = first_string.concat(second_string);
console.log(tell_my_boss);
['Hello', ' ', 'World'].join(''); // 'Hello World'