import{_ as n,c as s,a as p,o as t}from"./app-DZszAu6D.js";const e={};function c(o,a){return t(),s("div",null,a[0]||(a[0]=[p(`
function greeter(name)
{
console.log("Hello, " + name);
}
调用函数greeter('Alice');
funcGreeter = (name) => {
console.log("Hello, " + name);
}
如果只有一个参数的函数,可以省掉括号
name => {
console.log("Hello, " + name);
}
如果函数体只包含一个返回语句,可以省略大括号
(a, b) => {
return a+b;
}
(a, b) => a+b;
`,10)]))}const i=n(e,[["render",c],["__file","function.html.vue"]]),r=JSON.parse('{"path":"/note/language/javascript/function.html","title":"JavaScript函数","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"基本函数定义","slug":"基本函数定义","link":"#基本函数定义","children":[]},{"level":2,"title":"箭头方式定义函数","slug":"箭头方式定义函数","link":"#箭头方式定义函数","children":[]}],"git":{},"filePathRelative":"note/language/javascript/function.md"}');export{i as comp,r as data};