1. JavaScript is a programming language for making web pages ___________. It has all the features you would expect of a language such as variables, operators, arrays
2. JavaScript was invented by Brendan Eich in 1995, and according to Wikipedia, in just 10 days.
3. JavaScript is an interpreted programming language. Browsers need to have a Javascript interpreter installed in order to run it.
4. It is not possible to write JavaScript directly into an HTML page. Instead you can have a separate .js text file, that you include on a web page using the "jscript" tag
5. Look at the following examples of JavaScript code. 'var' is used to:
6. The most important rule in JavaScript for writing fixed values is that both strings and integers are written inside quotations. See example
7. Code after double slashes // or between /* and */ is treated as a ___________
8. In JavaScript,___________ are case sensitive and are used to name variables (and keywords, and functions, and labels).
9. In HTML, JavaScript code must be inserted between certain tags. Which of the following options is correct?
10. You can place any number of scripts in an HTML document. Scripts can be placed in the , or in the section of an HTML page, or in both.
11. What is happening in this JavaScript example?
12. Placing scripts at the bottom of the body tag element improves the display speed, because script compilation slows down the display.
13. External scripts are NOT practical when the same code is used in many different web pages.
14. In this example, the JavaScript code changes the content of the element with _____________
15. In this example, the code changes the content of its own element (using this.innerHTML):
16. In the following example, what will happen when you click the 'button' which says 'Try it'
17. In this code, on clicking the button, ___________________________________
18. In the following example, clicking on the button "Try it", will __________________-
19. JavaScript can "display" data in different ways: Read the following excerpt and fill in the blanks.
20. The _____() method displays a dialog box that prompts the visitor for input. A _____box is often used if you want the user to input a value before entering a page