• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part I: Basic JavaScript > Using Operators and Expressions

Chapter 4. Using Operators and Expressions

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.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint