Jump to Categories

Expressions

2 is a literal value expression
b is a variable expression, which means to retrieve its current value
b * 2 is an arithmetic expression, which means to do the multiplication
a = b * 2 is an assignment expression, which means to assign the result of the b * 2 expression to the variable a (more on assignments later)

a = b * 2;

Call expression(function)

alert( a );