Skip to content

Scope & arguments · ⁨作用域与参数⁩

English

Local variables

  • A variable made inside a function is local.
  • It only exists while the function runs.
  • Code outside the function cannot see it.
中文

局部变量

  • 在函数内部创建的变量是局部的(local)。
  • 它只在函数运行期间存在。
  • 函数外面的代码看不到它。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩