Beginning with JavaScript

JavaScript is an Object-Oriented Language (OOL).

Object: A "thing," like the window or a form or a button (on the screen).

Property: Objects have properties. For example, the window has a name, the form may have a target or a textbox.

Method: Methods are what the objects can do. For example, the window may be open, a button may be clicked. Parentheses follow methods, so if there's a set of parentheses, the item to its left has to be a method.

Event Handlers: onMouseOver is one of JavaScript's event handlers. Events are actions by the viewer of an HTML page that includes JavaScript. "onMouseOver" causes something to happen when the cursor moves over an object on the screen.

Values: There are six value types. You're probably most familiar with the number type. 5.48 is a numeric value. But to the computer, a string (text) is another kind of value.

Variables: Variables contain values. You can think of it like a small rural Post Office. Mail is stored in boxes corresponding to addresses. In the computer, a variable name (such as PI) would be the name of the "box" - that's the location in the memory - where 3.1416 is stored. PI, for example, would be a variable name. 3.1416 is the value.

Assignment Statements and Operators: To assign a value to a memory location, the equals sign is used...

Comparisons: Every comparison returns a Boolean value; i.e., True or False (in binary, 1 or 0). For example, A > B (using the values stored in A and B from above) would return False. Comparisons are usually used in loops.

Loops: The instructions within a loop are executed until a condition is satisfied. For example...

Creation of JavaScript: Use a text editor like Notepad or Wordpad. Do not use word processors like Word or WordPerfect unless you are careful to save the file as "Text Only!" The text is usually placed in an HTML document in the heading, but it may be placed in the body. But don't save it as a "txt" document; use an "htm" or "html" extension.

Comments:

Functions: Good Programming Technique:  Your programs should be readable several months later, to you as well as to others.  Notice the indenting and use of blank lines?

You can find a lot more information at this excellent site!

Java vs. JavaScript differences:

ASEE Section conference 2000 presentation