## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

#### Variables and Constants

Variables and constants are used to hold values or expressions. Think back to your ninth-grade algebra class. In the equation 2 + y = x, y is the variable. See, your teacher was right—this may prove useful yet. Variables can have any name. So “y” or “x” is a valid name. But they should be named something that makes sense. Consider which of the following is easier to follow. 2 + y = x or 2 + strVariablePercent = strPercentMarkUp. I would say you can understand more from the second equation than the first, even without knowing the context. Add a line of comments, note the proper case, and you are on your way to well-formatted descriptive rules.

A variable is a value that changes depending on parameters and when it is used. ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required