📜  局部变量与全局变量 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:46.948000             🧑  作者: Mango

代码示例1
Local variables:
These variables can be used or exist 
only inside the function. These variables
are not used or referred by any other function.

Global variables:
These variables are the variables which
can be accessed throughout the program.
Global variables cannot be created
whenever that function is called.