JavaScript

 

 

 

 

Check Your Understanding: Lesson One

1. Inside which HTML tag do we put JavaScript?

a. <javaScript>
b. <js>
c. <Scripting>
d. all of the above

2. Is a good idea to put JavaScrip code inside HTML comment tags because:

a. it helps organize your code and keep track of variables
b. it prevents older browsers from reading the code
c. JavaScript code are actually just comments for the browser to read
d. none of the above

3. What is the correct JavaScript syntax to write "JavaScript is Fun"?

a. document.write="JavaScript is fun!"
b. response.write("JavaScript is fun!")
c. write.document("JavaScript is fun!")
d. document.write("JavaScript is fun!")


© 2002 Tracy Johnson