In JavaScript it's +
instead of .
Example 1:
document.write("Text" + somestring + "anotherText" + anotherString);
Example 2:
alert("Text" + somestring + "anotherText" + anotherString);
Example 3:
var john = "Text" + somestring + "anotherText" + anotherString;