Locked lesson.
About this lesson
What are the different assignment operators and how are they used.
Exercise files
Download this lesson’s related exercise files.
Assignment Operators.docx58.8 KB Assignment Operators - Solution.docx
58.8 KB
Quick reference
Assignment Operators
Assignment Operators let us assing data to things.
When to use
Use them whenever you want to assign data.
Instructions
The main assignment operators are
- =
- +=
- -=
- *=
- /=
- **=
- %=
Hints & tips
- Assignment operators allow us to assign data
- They also allow us to do math and assign at the same time
- All of the math operators can become assignment operators
Lesson notes are only available for subscribers.