Variables


#1


24. Variables.
I am just so confused with Variables, why we use them, what are they used for? HOW to use them?


#2

you can't program without variables, they are so useful. It is for so many things, from storing user input, to holding strings/number/arrays/dictionary's and much more

Do you have trouble with a particular exercise? If so please post the exercise url + code + error message

Anyway, to store a string in a variable using the following syntax:

var variable = "something string"

we use a single equal sign to store (assign) a value (in this case a string) into a variable


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.