Programming with JavaScript

JavaScript has a lot to offer page authors. It is not as flexible as C or C++, but it is quick and simple. Most importantly, it's easily embedded in your Web pages; thus, you can maximize their impact with a little JavaScript seasoning. This section covers the gritty details of JavaScript programming and includes a detailed explanation of the language's features.

Expressions

An expression is anything that can be evaluated to get a single value. Expressions can contain string or numeric literals, variables, operators, and other expressions, and they can range from simple to quite complex. The following are examples of expressions that use the assignment operator (more on operators in the next section) to assign numeric ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.