📄 global-var.js
字号:
// create a global variable
var stored_num;
// a function to call a second function
// and display a returned result
function call_alert( num )
{
stored_num = num;
make_triple();
alert( "The Value Is " + stored_num );
}
// a function to double a value
// and return the result to the caller
function make_triple()
{
stored_num = stored_num + stored_num + stored_num;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -