Variables, Expressions and Statements

Notes for using Variables, Expressions and Statements with Scratch
  • Value:  the fundamental "stuff" -- numbers and words -- that a program (Scratch) manipulates.
  • Variable: is a name that refers to a value.
  • Statement: an instruction that a program (Scratch) can execute.
  • Expression: a combination of values, variables and functions.
  • Function: in Scratch, one of the Pill-Shaped blocks, like the x-postion of a sprite; acts as a chunk of mini-code.
1.) Values and Data Types

2.) Variables

3.) Statements

4.) Evaluating Expressions
  • Operators: special tokens for computation
  • Operands: values used by operators
5.) Operators and Operands

6.) Order of Operations

Popular Posts