QUESTION |
MY ANSWER |
CORRECTION |
|
| What is JavaScript? | A programming language in "shortcut" form. | Scripting language to provide functionality to webpages. | |
| Who invented JavaScript? | Netscape | and Sun Micro-system jointly. | |
| How is JavaScript different from Java? | Does not have control of user computer. Does have cookies but controlled by webpage viewing. |
Javascript is interpreted (not compiled) by client, object-based(?), integrated & embedded in HTML, undeclared variable data (loose typing), dynamic binding (object references checked at run-time).
Java is compiled by server, then executed on client, object-oriented(?), distinctive from HTML, declared variable data (strong typing), static binding (object references must exist at compile-time). (BOTH cannot write to hard drive). |
|
| What can JavaScript do? | Mouseovers, interactivity on pages. | Can be used to create a "browser cookie" on a user's computer. It can display scrolling messages in the browser's status bar, change background colours, send form information to an e-mail address, pop up all kinds of windows, use pulldown menus for navigation, and use JavaScript "mouseovers" to add interest and interactivity to your web site. | |
| What can't JavaScript do? | Control user computer | Cannot access or control someone's computer nor write to hard disk. | |
| How is JavaScript activated? | Immediately when located in "HEAD" section, deferred in "BODY" section. |
For immediate activation, put the full JavaScript code inside the HTML HEAD tags.
Other ways:
|