The ConCat() method allows you to join two or more strings together. Say you have a program with a first name, last name, and a title. You might want to join the two names together. This is how you can do so:
var firstname="Leroy "
var title="Baddest Man in the Whole Damn Town"
var linebreak=("<br />")
This would result in the following being displayed to the browser:
Leroy Brown Baddest Man in the Whole Damn Town
Fixing It With the Fixed() Method
The Fixed() method allows you to create Teletype text, like so:
var news="James Payne wins his third Nobel Prize for Literature!"
document.write("<p>This just in: " + news.fixed() + "</p>")
This would result in the following:
This just in: James Payne wins his third Nobel Prize for Literature!