Home 05: Variables
Content
Cancel

05: Variables

You are now ready to get to know variables. Variables are very useful, and you will use them very frequently from now on.

You can store values in variables. For example, you want to change a value dynamically during your program is executed (this is also called during your program’s runtime). Think about changing your x position over time to make your Emoji move.

Another reason you would like to use variables is to affect multiple places in your program with one single change. If you decide to change the position of your emoji, it could be useful to just change x and y once and having all the other positions use these values as a reference.

And in the following parts we will have a closer look at some examples.

This post is licensed under CC BY 4.0 by the author.