| Understanding JavaScript |
Topic status automatically displays here - do not remove.
In contrast, JavaScript descends in spirit from a line of smaller, dynamically typed languages like HyperTalk and dBASE. These scripting languages offer programming tools to a much wider audience because of their easier syntax, specialized built-in functionality, and minimal requirements for object creation.
| JavaScript | Java |
|---|---|
|
Interpreted (not compiled) by client. |
Compiled bytecodes downloaded from server, executed on client.
|
|
Object-based. Uses built-in, extensible objects, but no classes
or inheritance. |
Object-oriented. Applets consist of object classes with inheritance.
|
|
Code integrated with, and embedded in, HTML. |
Applets distinct from HTML (accessed from HTML pages). |
|
Variable data types not declared (loose typing). |
Variable data types must be declared (strong typing). |
|
Dynamic binding. Object references checked at runtime. |
Static binding. Object references must exist at compile-time.
|
|
Cannot automatically write to hard disk. |
Cannot automatically write to hard disk. |
Apparently, you can't call JS functions between separate JS files, but you can link both to the same HTML page and call functions from either file.
|
Lotech Solutions' Tips, Tricks,
and Procedures
Copyright Lotech Solutions. All rights reserved.