Skip to content

Scope & arguments

Local variables

  • A variable made inside a function is local.
  • Its name belongs to that function call.
  • Code outside cannot access that local name directly. An object returned by the function can still be used after the call ends.

Handout

Log in or create account

IGCSE, A-Level & AP