Skip to content

Commit

Permalink
Additional copyedits
Browse files Browse the repository at this point in the history
  • Loading branch information
mdippery committed May 18, 2016
1 parent e9e2121 commit dcc76f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ Why use variables and constants in your program? Both variables and constants ar

## Choosing Between Variables and Constants

When should you use a variable, and when should you use a constant? A variable should be used when a value might change during the course of a single run of a program. For example, when you start running a program, your favorite may be Jon Snow, but perhaps by the end of the program's run, you may want to switch your allegiance to another character. A constant, on the other hand, is a way to bind a name to a value that won't change. This lets you refer to that value using a label without being concerned with the exact value that label takes.
When should you use a variable, and when should you use a constant? A variable should be used when a value might change during the course of a single run of a program. For example, when you start running a program, your favorite may be Jon Snow, but perhaps by the end of the program's run, you may want to switch your allegiance to another character (like when you changed the value of `favoriteCharacter` to "Tyrion Lannister"). A constant, on the other hand, is a way to bind a name to a value that won't change. This lets you refer to that value throughout your program where you are certain without a doubt that the value will _never_ change.

<a href='https://learn.co/lessons/Variables' data-visibility='hidden'>View this lesson on Learn.co</a>
<a href='https://learn.co/lessons/Variables' data-visibility='hidden'>View this lesson on Learn.co</a>

0 comments on commit dcc76f1

Please sign in to comment.