An expression is a phrase – a fragment of code that produces a value. These snippets of code are made up of keywords which you evaluate to get its value.

You can assign the value of an expression to a variable to produce a statement (because until you actually do something with that variable, no answer is produced).

Examples of an expression include:

  • Returning a value:return PI * radius * radius;
  • Printing the contents of a variable:print a;
  • Calling a function (but not the function itself, that would be considered a statement):multiplyNumbers(2,3);