http://www.htmlgoodies.com/primers/jsp/article.php/11915_3656846_5/The-JavaScript-Diaries-Part-2.htm (Back to article)
That will wrap up our study for this installment. Practice writing variables
and use the examples I have given you here. Remember to use your template and
try them to make sure they work. Until then here are some questions. Until next
time ...
Review Questions
Answers to these questions will be given in the next installment.
Multiple Choice
A data type is:
a letter
a number
both
The four basic data types are:
strings, numbers, BooBoos, and nulls
strings, text, Booleans, and nulls
strings, numbers, Booleans, and nulls
strings, numbers, Booleans, and zeros
To display a backslash, using an escape sequence, it would be written:
/\
//
|backslash
\\
A variable is used to store:
an escape sequence
hidden script
data
True or False
Comment tags are used to hide script from new browsers.
Variables cannot be used together with text strings.
A string cannot have more than one set of quotes.
HTML elements can be used inside of a string.
A null data type returns a zero.
Bob Dylan writes good music (I just wanted to make sure you were awake).
A variable must be declared and initialized all on the same line.