December 2001
Intermediate to advanced
480 pages
9h 22m
English
CONTENTS>>
The previous Chapters Made Extensive Use of both operators and expressions. This chapter examines the operators and the expressions that they create. In programming, the name “expression” is a bit misleading because both literals and a combination of literals and variable names can be expressions. Thus, this excerpt:
total
is an expression in a line of JavaScript code, as is this:
total + tax + 4.99
So, while an expression is usually envisioned as a combination of literals or variables (complex expressions), expressions can be single variables or literals.
Read now
Unlock full access