Locked lesson.
About this lesson
How to assign values to a variable, and do basic math assignment.
Exercise files
Download this lesson’s related exercise files.
Assignment Operators .docx58.7 KB Assignment Operators - Solution.docx
58.8 KB
Quick reference
Assignment Operators
Assignment operators are used to "assign" things to other things.
When to use
Anytime you want to assign something to something else, you'll use an assignment operator.
Instructions
The most common assignment operator is the equal to sign =
Other common assignment operators are:
=
+=
-=
*=
/=
%=
Hints & tips
- You'll mostly use the equal to sign to assign
- You can use math assignment operators to shortcut your math work
Lesson notes are only available for subscribers.