EXERCISES


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 green.

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:

 
 <html> <head>    <title>Finding Errors</title> </head> <body bgcolor="yellow" text="blue"> <script language="JavaScript"    document.writeln("Two, ")    document.writeln ("Three, ")    document.write('Blast off....<br>"); </script> </body> </html> 



JavaScript by Example
JavaScript by Example (2nd Edition)
ISBN: 0137054890
EAN: 2147483647
Year: 2003
Pages: 150
Authors: Ellie Quigley

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net