variables Flashcards

1
Q

what is a local variable

A

a variable that is declared in a function and can only be used in that function

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

what are global variables

A

variables that are declared outside a function

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