Slide 9 of 57Lecture 2: Using Objects 
PreviousNextOverview

Syntax 2.2: Assignment

  variableName = value;

Example:

  luckyNumber = 12;

Purpose:

To assign a new value to a previously defined variable.