函数
函数的作用:如果需要多次执行同一段代码,就可以将其封装成函数, 格式 function 函数名(参数){ 函数体 } 例如: function chengFa(a,b){ console.log(a*b); } chengFa(5,4);// 结果20