Variables Flashcards
1
Q
declaring,
A
A variable needs to be set up and named before a value can be stored in it. var x;
2
Q
naming,
A
You can also overwrite the existing value of a variable with another value, or even use the existing value of
a variable in assigning it a new value.
var poopy, butt, hole;
3
Q
assigning values,
A
You can also declare a variable and assign it a value all in one statement. var x =7; or x = 7
4
Q
overwriting
A
You can also overwrite the existing value of a variable with another value, or even use the existing value of
a variable in assigning it a new value.
var number = 5;
number = 10;
number = number + 10;
5
Q
variable
A
to store something, var _____