Because it is a global variable it can be used within any script in that HTML document and within any functions. The other type of variable is a local variable. A local variable is used specifically for a function and is defined within that function. A local variable does not need the var keyword. The variable above was an example of a string.
Strings are one of the most simple kinds of variables.
There are several different methods and properties of strings you should be aware of. For starters, the length property. You can also use substrings, or parts of strings. Notice that the indexing of the string starts at 0. Sub would equal s .