join many strings js code example Example: javascript join 2 variables into string A = 'hello '; B = 'world!'; // outputs "hello world!" console.log(A + B);