HTML and CSS Reference
In-Depth Information
1. What is a reserved word? Give an example.
2. Is JavaScript case sensitive?
3. What is the purpose of enclosing statements within curly braces?
4. What is the latest version of JavaScript? Where can you find this information?
5. What is the difference between the JavaScript src and type attributes?
6. How would you concatenate the following three strings with JavaScript?
"trans" "por" "tation"
7. Write a script that demonstrates how concatenation works.
8. Create a JavaScript program that will print “Hello, world! Isn't life great?” in an
Arial bold font, size 14, and make the background color of the screen light
9. Add two strings to the first JavaScript program—your first name and last
name—concatenated and printed in a blue sans serif font, size 12.
10. In the Location field of your browser, test the value of an expression using the
JavaScript: protocol.
11. Find the errors in the following script:
<title>Finding Errors</title>
<body bgcolor="yellow" text="blue">
<script type="text/javascript"
document.writeln("Two, ")
document.writeln ("Three, ")
document.write( ' Blast off....<br />");
Search WWH ::

Custom Search