<script>
var a = "Text 1";
var b = "Text 2";
var c = a + " " + b;
document.write(c);
</script>