jquery append to string code example
Example 1: jquery append
$("p").append(" <b>Appended text</b>.");
Example 2: js concatenate strings
const str1 = 'Hello';
const str2 = 'World';
console.log(str1 + str2);
>> HelloWorld
console.log(str1 + ' ' + str2);
>> Hello World