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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

variable

A

to store something, var _____

How well did you know this?
1
Not at all
2
3
4
5
Perfectly