Hour of Code: Code with Mary

Part 7: The End of the World

Quorum Review

Hour of Code Review - Variables

Variables are containers for information.

To create a variable, declare the type of the variable followed by the name.

To assign a value into a variable, use the = operator.

There are four main types of variables in Quorum, each for specific kinds of data:

text for any number of characters

integer for positive and negative whole numbers

number for values with a demical point

boolean for true or false values.

When creating a variable name, always start it with a letter (usually lower case, but this is not required).

More information on variables can be found here.

Try it Yourself

End of Lesson

You have reached the end of the lesson for Code With Mary. To view more tutorials, press the button below or you can go back to the previous lesson pages.