Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Quiz

Test your knowledge of the material covered in this hour by answering the following questions.

Questions

1:

Why do JavaScript and Java have similar names?

  1. JavaScript is a stripped-down version of Java
  2. JavaScript's syntax is loosely based on Java's
  3. They both originated on the island of Java
A1:

b. Although they are different languages, JavaScript's syntax is loosely based on Java.

2:

When a user views a page containing a JavaScript program, which machine actually executes the script?

  1. The user's machine running a Web browser
  2. The Web server
  3. A central machine deep within Netscape's corporate offices
A2:

a. JavaScript programs execute on the Web browser. (There is actually a server-side version of JavaScript, but that's another story.)

3:

Which of the following languages is supported by both Microsoft Internet Explorer and Netscape?

  1. VBScript
  2. ActiveX
  3. JavaScript
A3:

a. JavaScript programs execute on the Web browser. (There is actually a server-side version of JavaScript, but that's another story.)

Share ThisShare This

Informit Network