1定义函数2.调用函数函数:是封装特定功能的代码块 1定义函数1.定义函数 function go (){ console.log("hello world") } function 关键字 go 函数名 { }之间是代码块 2.调用函数 go( )