JavaScript

Expressions

An expression is any valid combination of literals, operators, and/or variables that evaluates to a single value (a number, a string, or a logical value). There are two kinds of expression, conceptually - those using assignment operators (these assign a value to a variable, e.g. x = 5) and those using other operators (e.g. 2 + 3).

In JavaScript there are 3 types of expressions:

Back to top     Home     Serious Stuff

© 2001. Copyright Sue Nethercott.