appendtostring code example
Example: appendtostring
//This function accepts two strings & returns a new string that
//consists of string2 added to string1
//This function has two parameters: string1 & string2
function appendToString(string1, string2) {
return string1 + string2;
}
console.log("Hello", "World!");// "Hello World!"