Please enable JavaScript to use CodeHS

AP CSA: VAR-1.G.3

CodeHS Lessons

Formal parameters and variables declared in a method or constructor can only be used within that method or constructor.

11.8 Scope and Access
12.10 Local Variables and Scope
5.8 Scope and Access
6.10 Local Variables and Scope
4.10 Local Variables and Scope