<script type="text/javascript"> //First we need to initiate the variables that contain the strings:
var firstString = "This is the first string. ";
var secondString = "This is the second string. ";
var thirdString = "This is the third string. ";
</script>
<p>This string was made with a regular HTML paragraph element</p>
<p>Strings stored as variables can be called using document.write:</p>
<script type="text/javascript">
document.write(firstString); //this uses the variable 'firstString' to write that string to the page
document.write("<br>") //this just inserts a line break
document.write(secondString + " This uses concatenation to write the contents of a variable as well as this string.");
document.write("<br>");
document.write(secondString + thirdString); //You can also concatenate two variables.
</script>