join variables in javascript code example
Example 1: javascript string concatenation
var totn_string = '';
console.log(totn_string.concat('Tech','On','The','Net'));
//The following will be output to the web browser console log:
TechOnTheNet
Example 2: javascript join 2 variables into string
A = 'hello ';
B = 'world!';
// outputs "hello world!"
console.log(A + B);